Temperatura de color a RGB
color-temperatureAproxima el color sRGB de una fuente de luz a una temperatura de 1.000 K a 40.000 K. Cuándo: hay que calcular con exactitud colores, contrastes o paletas, p. ej. para revisar accesibilidad. No para: ajustar un color en OKLCH (color-adjust). Efectos secundarios: ninguno (solo lectura, sin red, sin estado guardado). Determinista: la misma entrada da la misma salida. Límites: entrada JSON de hasta 64 KB, 1 s por llamada, resultado de hasta 1 MB.
EN: Approximates the sRGB color of a black-body light source at a temperature from 1,000 K to 40,000 K (Tanner Helland fit), e.g. 2700 K warm white or 6500 K daylight. When: color values, contrast or palettes have to be computed exactly, e.g. for accessibility checks. Not for: adjusting a color in OKLCH (color-adjust). Side effects: none (read-only, no network access, no stored state). Deterministic: the same input gives the same output. Limits: JSON input up to 64 KB, 1 s per call, result up to 1 MB.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kelvin | Yes | Temperature in kelvin (number; required; min 1000; max 40000). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hex | No | ||
| rgb | No |