#D4C03F#D4C03F

#D4C03F is a light, vivid yellow. Relative luminance 0.521; OKLCH L 80.2% C 0.145 H 100.3°. Best body text is #000000 at 11.41:1 contrast (WCAG AA passes).

Color values

HEX#D4C03F
RGBrgb(212, 192, 63)
HSLhsl(52, 63%, 54%)
HSVhsv(52, 70%, 83%)
CMYKcmyk(0%, 9.4%, 70.3%, 16.9%)
CIE-LABlab(77.32, -7.11, 64.26)
CIE-LCHlch(77.32, 64.65, 96.32°)
OKLaboklab(80.2% -0.0259 0.143)
OKLCHoklch(80.2% 0.145 100.3)
XYZxyz(46.9004, 52.0574, 12.2793)
Luminance0.5205 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D4C03F #3F53D4
analogous
#D4763F #D4C03F #9ED43F
triadic
#D4C03F #3FD4C0 #C03FD4
tetradic
#D4C03F #3FD476 #3F53D4 #D43F9E
square
#D4C03F #3FD476 #3F53D4 #D43F9E
split-complementary
#D4C03F #3F9ED4 #763FD4
monochromatic
#7D701C #AF9C27 #D4C03F #DFD071 #EAE1A3

Accessibility & contrast

On white

1.84
#D4C03F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.41
#D4C03F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D4C03F
11.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D4C03F#FFFFFF#000000##000000
##D4C03F1.001.8411.4111.41
#FFFFFF1.841.0021.0021.00
#00000011.4121.001.001.00
##00000011.4121.001.001.00

Color blindness preview

Protanopia (red-blind)
#D2BB2B
Deuteranopia (green-blind)
#D8C247
Tritanopia (blue-blind)
#E4B2A6
Achromatopsia (no color)
#BFBFBF

Design tokens & code

CSS
--color: #d4c03f;
/* rgb */ color: rgb(212, 192, 63);
/* oklch */ color: oklch(80.2% 0.145 100.3);
Tailwind
colors: {
  custom: {
    50: '#e5d27c',
    500: '#d4c03f',
    950: '#000000',
  },
}
SCSS
$custom: #d4c03f;
$custom-light: #e5d27c;
$custom-dark: #000000;
JSON
{
  "hex": "#d4c03f",
  "rgb": {
    "r": 212,
    "g": 192,
    "b": 63
  },
  "hsl": {
    "h": 51.946,
    "s": 63.404,
    "l": 53.922
  },
  "oklch": {
    "l": 0.80203,
    "c": 0.14532,
    "h": 100.3
  },
  "luminance": 0.52055
}

Semantic roles & 50–950 ramp

primary
#D4C03F
secondary
#333E84
accent
#58E641
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#16140A
muted
#85837D

Preview Lab

Preview with #D4C03F

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#D4C03F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva