Colour reference
Sunglow
#ffd166
- RGB
- rgb(255 209 102)
- HSL
- 42°, 100%, 70%
- OKLCh
- 88.0% 0.135 86.1
Sunglow in every format
Web & CSSThe everyday formats for stylesheets and design tools.
| Hex | #ffd166 | |
|---|---|---|
| RGB | rgb(255 209 102) | |
| RGB legacy | rgb(255, 209, 102) | |
| RGB percent | rgb(100% 81.96% 40%) | |
| HSL | hsl(42 100% 70%) | |
| HSL legacy | hsl(42, 100%, 70%) | |
| HSV / HSB | hsv(42, 60%, 100%) | |
| HWB | hwb(42 40% 0%) | |
| Nearest name | khaki (approx.) | |
| CMYK | cmyk(0%, 18%, 60%, 0%)Naive conversion. Real print work needs an ICC profile. |
Perceptual & wide gamutModern CSS colour spaces for uniform scales and P3 displays.
| OKLCh | oklch(88.03% 0.13478 86.062)Modern CSS colour space for even palettes — better than HSL when building scales. | |
|---|---|---|
| OKLab | oklab(88.03% 0.00926 0.13446) | |
| CIE LCh | lch(86.387% 58.812 82.003) | |
| CIE Lab | lab(86.387% 8.182 58.241) | |
| Display P3 | color(display-p3 0.9712 0.8264 0.4664) | |
| Rec. 2020 | color(rec2020 0.9187 0.8106 0.4232) | |
| srgb-linear | color(srgb-linear 1 0.6376 0.1329)Light-linear sRGB — the same numbers a shader wants for maths. | |
| CIE XYZ (D65) | color(xyz-d65 0.6644 0.6782 0.2216) |
ShadersGLSL, HLSL and WGSL vectors in both encoded and linear form.
| GLSL vec3 — sRGB | vec3(1.0, 0.82, 0.4)Encoded values. Use when writing straight to the framebuffer. | |
|---|---|---|
| GLSL vec3 — linear | vec3(1.0, 0.638, 0.133)Light-linear values. Use for lighting, blending and mixing. | |
| GLSL vec4 — sRGB | vec4(1.0, 0.82, 0.4, 1.0) | |
| GLSL vec4 — linear | vec4(1.0, 0.638, 0.133, 1.0) | |
| GLSL ivec3 | ivec3(255, 209, 102) | |
| HLSL float3 — sRGB | float3(1.0, 0.82, 0.4) | |
| HLSL float3 — linear | float3(1.0, 0.638, 0.133) | |
| HLSL float4 — sRGB | float4(1.0, 0.82, 0.4, 1.0) | |
| HLSL half4 — sRGB | half4(1.0, 0.82, 0.4, 1.0) | |
| WGSL vec3f — sRGB | vec3f(1.0, 0.82, 0.4) | |
| WGSL vec4f — sRGB | vec4f(1.0, 0.82, 0.4, 1.0) | |
| WGSL vec3<f32> — linear | vec3<f32>(1.0, 0.638, 0.133) |
Engines & appsConstructors for Unity, Unreal, Godot, Flutter, SwiftUI and Android.
| Unity Color | new Color(1.0f, 0.82f, 0.4f, 1.0f)Color for everyday scripting (0–1). Color32 when you need whole numbers from 0 to 255. | |
|---|---|---|
| Unity Color32 | new Color32(255, 209, 102, 255) | |
| Unreal FLinearColor | FLinearColor(1.0f, 0.6376f, 0.1329f, 1.0f)FLinearColor for materials and lighting. FColor when you need whole numbers from 0 to 255. | |
| Unreal FColor | FColor(255, 209, 102, 255)Whole numbers from 0 to 255 — use when an API asks for FColor, not FLinearColor. | |
| Godot Color | Color(1, 0.82, 0.4, 1) | |
| Flutter Color | Color(0xFFFFD166)Packed ARGB, so alpha comes first. | |
| Android Color | Color.rgb(255, 209, 102) | |
| SwiftUI Color | Color(red: 1, green: 0.82, blue: 0.4) | |
| UIKit UIColor | UIColor(red: 1, green: 0.82, blue: 0.4, alpha: 1) |
Raw valuesPacked integers and plain arrays.
| 0x hex | 0xFFD166 | |
|---|---|---|
| 0x hex (ARGB) | 0xFFFFD166 | |
| Array 0–1 | [1, 0.82, 0.4] | |
| Array 0–255 | [255, 209, 102] | |
| Decimal integer | 16765286 |
Contrast and accessibility
WCAG 2 ratios are what audits and legislation reference. APCA is shown alongside because WCAG 2 is known to misjudge mid-tone backgrounds, and it is the basis of the WCAG 3 draft.
| Pairing | WCAG 2 ratio | Level | APCA | Suitable for |
|---|---|---|---|---|
| Sunglow on white | 1.44:1 | Fail | Lc 21 | Not usable for text |
| Sunglow on black | 14.56:1 | AAA | Lc 82 | Body text, 18px and up |
Sunglow text on a white background
Sunglow text on a black background
White text on Sunglow
Black text on Sunglow
Tonal scale
Hue held fixed while lightness walks OKLCh, ready to use as a design system ramp.
- 50#fff5c0
- 100#ffe99a
- 200#fed782
- 300#e9c062
- 400#cda338
- 500#af8400
- 600#936a00
- 700#775400
- 800#5f4200
- 900#4c3300
- 950#2d1c00
Tints and shades
Mixed perceptually toward white and black, so the steps feel evenly spaced.
- Tint 1#ffd984
- Tint 2#ffe19f
- Tint 3#ffe9b8
- Tint 4#fff0d0
- Tint 5#fff8e8
- Shade 1#c8a44e
- Shade 2#947838
- Shade 3#635023
- Shade 4#362a0f
- Shade 5#0f0a02
Colours that work with Sunglow
Complementary, triadic and analogous partners, rotated in OKLCh so they keep the same apparent brightness.
- #bfd7ff
- #49f0ff
- #ffb8ff
- #ffc696
- #d3e376
Closest CSS names
khakiΔEok 0.054goldΔEok 0.054navajowhiteΔEok 0.073palegoldenrodΔEok 0.075wheatΔEok 0.079moccasinΔEok 0.084