🔄 Color Temperature (Kelvin) Converter

Convert between Kelvin colour temperature and RGB to understand white balance and light colour for photography and design.

📐 工作原理与说明
Tanner Helland 近似:按温度分段幂函数求 R/G/B,如 R = 329.7·(T/100 − 60)^(−0.1332)(T 为开尔文)
基于黑体辐射的屏幕近似算法:把色温 K 映射为可显示的 RGB(非线性、仅近似,非精确光谱),反向亦可由 RGB 估计色温(同样搜索 1000–40000K,并显示拟合色差与不确定性);用于摄影白平衡与灯光色彩参考。
💡 常见光源:
蜡烛 1800K 白炽灯 2700K 暖光 3200K 荧光灯 4500K 日光 5500K 阴天 6500K 蓝天 9000K+

📚 深度解析:色温转换(开尔文)

💡 常见使用场景

  • 把 6500K 转成屏幕白点 RGB。
  • 估算烛光/日光灯的颜色。
  • 调摄影白平衡参考。
6500K 转 RGB

输入:色温 6500K。

处理:按近似 Planck 曲线映射。

输出:约 rgb(255,255,255),即标准日光白。

❓ 常见问题(FAQ)

低色温偏什么?
偏低(如 2700K)偏暖黄,偏高(如 9000K)偏冷蓝。结果以浏览器实时计算为准,纯前端本地处理、数据不上传;生成的样式与代码仅作快速产出参考,正式项目请以设计系统、规范与浏览器实测为准。
两种色对比度不够会提示吗?
本页专注色温换算与 RGB/HEX 互转,不提供双色对比度检查;需要核验文字与背景可读性请用对比度检查器。
会保存或上传我的内容吗?
结果以浏览器实时计算为准,纯前端本地处理、数据不上传;生成的样式与代码仅作快速产出参考,正式项目请以设计系统、规范与浏览器实测为准。

Formula & Standard References

Item Formula / Note Source / Standard
Black-body radiation colour temperature is defined by the Planckian radiator spectrum CIE 15:2004
Correlated colour temperature off-locus colours use the nearest point plus a Duv offset CIE 15:2004 / CIE 224:2017
Standard illuminants D65 near 6500 K models daylight, illuminant A near 2856 K models incandescent ISO 3664 / CIE D65
⚠️ 使用说明与注意事项