Colour reference

Sunglow

#ffd166

RGB
rgb(255 209 102)
HSL
42°, 100%, 70%
OKLCh
88.0% 0.135 86.1

Open in the picker

Sunglow in every format

Web & CSSThe everyday formats for stylesheets and design tools.

Hex#ffd166
RGBrgb(255 209 102)
RGB legacyrgb(255, 209, 102)
RGB percentrgb(100% 81.96% 40%)
HSLhsl(42 100% 70%)
HSL legacyhsl(42, 100%, 70%)
HSV / HSBhsv(42, 60%, 100%)
HWBhwb(42 40% 0%)
Nearest namekhaki (approx.)
CMYKcmyk(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.

OKLChoklch(88.03% 0.13478 86.062)Modern CSS colour space for even palettes — better than HSL when building scales.
OKLaboklab(88.03% 0.00926 0.13446)
CIE LChlch(86.387% 58.812 82.003)
CIE Lablab(86.387% 8.182 58.241)
Display P3color(display-p3 0.9712 0.8264 0.4664)
Rec. 2020color(rec2020 0.9187 0.8106 0.4232)
srgb-linearcolor(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 — sRGBvec3(1.0, 0.82, 0.4)Encoded values. Use when writing straight to the framebuffer.
GLSL vec3 — linearvec3(1.0, 0.638, 0.133)Light-linear values. Use for lighting, blending and mixing.
GLSL vec4 — sRGBvec4(1.0, 0.82, 0.4, 1.0)
GLSL vec4 — linearvec4(1.0, 0.638, 0.133, 1.0)
GLSL ivec3ivec3(255, 209, 102)
HLSL float3 — sRGBfloat3(1.0, 0.82, 0.4)
HLSL float3 — linearfloat3(1.0, 0.638, 0.133)
HLSL float4 — sRGBfloat4(1.0, 0.82, 0.4, 1.0)
HLSL half4 — sRGBhalf4(1.0, 0.82, 0.4, 1.0)
WGSL vec3f — sRGBvec3f(1.0, 0.82, 0.4)
WGSL vec4f — sRGBvec4f(1.0, 0.82, 0.4, 1.0)
WGSL vec3<f32> — linearvec3<f32>(1.0, 0.638, 0.133)

Engines & appsConstructors for Unity, Unreal, Godot, Flutter, SwiftUI and Android.

Unity Colornew 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 Color32new Color32(255, 209, 102, 255)
Unreal FLinearColorFLinearColor(1.0f, 0.6376f, 0.1329f, 1.0f)FLinearColor for materials and lighting. FColor when you need whole numbers from 0 to 255.
Unreal FColorFColor(255, 209, 102, 255)Whole numbers from 0 to 255 — use when an API asks for FColor, not FLinearColor.
Godot ColorColor(1, 0.82, 0.4, 1)
Flutter ColorColor(0xFFFFD166)Packed ARGB, so alpha comes first.
Android ColorColor.rgb(255, 209, 102)
SwiftUI ColorColor(red: 1, green: 0.82, blue: 0.4)
UIKit UIColorUIColor(red: 1, green: 0.82, blue: 0.4, alpha: 1)

Raw valuesPacked integers and plain arrays.

0x hex0xFFD166
0x hex (ARGB)0xFFFFD166
Array 0–1[1, 0.82, 0.4]
Array 0–255[255, 209, 102]
Decimal integer16765286

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.

PairingWCAG 2 ratioLevelAPCASuitable for
Sunglow on white1.44:1FailLc 21Not usable for text
Sunglow on black14.56:1AAALc 82Body 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.054
  • goldΔEok 0.054
  • navajowhiteΔEok 0.073
  • palegoldenrodΔEok 0.075
  • wheatΔEok 0.079
  • moccasinΔEok 0.084