CSS named colour

Gold

#ffd700

A CSS named colour: gold is valid anywhere a colour is expected.

RGB
rgb(255 215 0)
HSL
51°, 100%, 50%
OKLCh
88.7% 0.182 95.3

Open in the picker

Gold in every format

Web & CSSThe everyday formats for stylesheets and design tools.

Hex#ffd700
RGBrgb(255 215 0)
RGB legacyrgb(255, 215, 0)
RGB percentrgb(100% 84.31% 0%)
HSLhsl(50.6 100% 50%)
HSL legacyhsl(50.6, 100%, 50%)
HSV / HSBhsv(50.6, 100%, 100%)
HWBhwb(50.6 0% 0%)
Nearest namegold
CMYKcmyk(0%, 15.7%, 100%, 0%)Naive conversion. Real print work needs an ICC profile.

Perceptual & wide gamutModern CSS colour spaces for uniform scales and P3 displays.

OKLChoklch(88.677% 0.18219 95.33)Modern CSS colour space for even palettes — better than HSL when building scales.
OKLaboklab(88.677% -0.01693 0.1814)
CIE LChlch(87.468% 86.602 88.075)
CIE Lablab(87.468% 2.91 86.553)
Display P3color(display-p3 0.9746 0.849 0.2855)
Rec. 2020color(rec2020 0.9231 0.8333 0.2458)
srgb-linearcolor(srgb-linear 1 0.6795 0)Light-linear sRGB — the same numbers a shader wants for maths.
CIE XYZ (D65)color(xyz-d65 0.6554 0.6986 0.1003)

ShadersGLSL, HLSL and WGSL vectors in both encoded and linear form.

GLSL vec3 — sRGBvec3(1.0, 0.843, 0.0)Encoded values. Use when writing straight to the framebuffer.
GLSL vec3 — linearvec3(1.0, 0.68, 0.0)Light-linear values. Use for lighting, blending and mixing.
GLSL vec4 — sRGBvec4(1.0, 0.843, 0.0, 1.0)
GLSL vec4 — linearvec4(1.0, 0.68, 0.0, 1.0)
GLSL ivec3ivec3(255, 215, 0)
HLSL float3 — sRGBfloat3(1.0, 0.843, 0.0)
HLSL float3 — linearfloat3(1.0, 0.68, 0.0)
HLSL float4 — sRGBfloat4(1.0, 0.843, 0.0, 1.0)
HLSL half4 — sRGBhalf4(1.0, 0.843, 0.0, 1.0)
WGSL vec3f — sRGBvec3f(1.0, 0.843, 0.0)
WGSL vec4f — sRGBvec4f(1.0, 0.843, 0.0, 1.0)
WGSL vec3<f32> — linearvec3<f32>(1.0, 0.68, 0.0)

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

Unity Colornew Color(1.0f, 0.843f, 0.0f, 1.0f)Color for everyday scripting (0–1). Color32 when you need whole numbers from 0 to 255.
Unity Color32new Color32(255, 215, 0, 255)
Unreal FLinearColorFLinearColor(1.0f, 0.6795f, 0.0f, 1.0f)FLinearColor for materials and lighting. FColor when you need whole numbers from 0 to 255.
Unreal FColorFColor(255, 215, 0, 255)Whole numbers from 0 to 255 — use when an API asks for FColor, not FLinearColor.
Godot ColorColor(1, 0.843, 0, 1)
Flutter ColorColor(0xFFFFD700)Packed ARGB, so alpha comes first.
Android ColorColor.rgb(255, 215, 0)
SwiftUI ColorColor(red: 1, green: 0.843, blue: 0)
UIKit UIColorUIColor(red: 1, green: 0.843, blue: 0, alpha: 1)

Raw valuesPacked integers and plain arrays.

0x hex0xFFD700
0x hex (ARGB)0xFFFFD700
Array 0–1[1, 0.843, 0]
Array 0–255[255, 215, 0]
Decimal integer16766720

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
Gold on white1.40:1FailLc 19Not usable for text
Gold on black14.97:1AAALc 84Body text, 18px and up

Gold text on a white background

Gold text on a black background

White text on Gold

Black text on Gold

Tonal scale

Hue held fixed while lightness walks OKLCh, ready to use as a design system ramp.

  • 50#fff8a3
  • 100#ffed76
  • 200#fbdb56
  • 300#e7c31e
  • 400#caa600
  • 500#a88900
  • 600#8a6f00
  • 700#6f5900
  • 800#594600
  • 900#463600
  • 950#291e00

Tints and shades

Mixed perceptually toward white and black, so the steps feel evenly spaced.

  • Tint 1#ffdf5b
  • Tint 2#ffe684
  • Tint 3#ffeda6
  • Tint 4#fff3c5
  • Tint 5#fff9e2
  • Shade 1#c8a800
  • Shade 2#947c00
  • Shade 3#635200
  • Shade 4#362c00
  • Shade 5#0f0a00

Colours that work with Gold

Complementary, triadic and analogous partners, rotated in OKLCh so they keep the same apparent brightness.

  • #cbd6ff
  • #68eeff
  • #ffbbf9
  • #ffcb8a
  • #beee59

Closest CSS names

  • goldexact match
  • khakiΔEok 0.077
  • yellowΔEok 0.099
  • palegoldenrodΔEok 0.109
  • navajowhiteΔEok 0.119
  • orangeΔEok 0.121