#D4C03B#D4C03B

#D4C03B is a light, vivid yellow. Relative luminance 0.520; OKLCH L 80.2% C 0.148 H 100.5°. Best body text is #000000 at 11.40:1 contrast (WCAG AA passes).

Color values

HEX#D4C03B
RGBrgb(212, 192, 59)
HSLhsl(52, 64%, 53%)
HSVhsv(52, 72%, 83%)
CMYKcmyk(0%, 9.4%, 72.2%, 16.9%)
CIE-LABlab(77.29, -7.30, 65.73)
CIE-LCHlch(77.29, 66.13, 96.34°)
OKLaboklab(80.17% -0.0269 0.1454)
OKLCHoklch(80.17% 0.148 100.5)
XYZxyz(46.7926, 52.0143, 11.7118)
Luminance0.5201 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D4C03B #3B4FD4
analogous
#D4733B #D4C03B #9BD43B
triadic
#D4C03B #3BD4C0 #C03BD4
tetradic
#D4C03B #3BD473 #3B4FD4 #D43B9B
square
#D4C03B #3BD473 #3B4FD4 #D43B9B
split-complementary
#D4C03B #3B9BD4 #733BD4
monochromatic
#7A6D1B #AC9A26 #D4C03B #DFD06D #EAE09F

Accessibility & contrast

On white

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

On black

11.40
#D4C03B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D4C03B
11.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D4C03B#FFFFFF#000000##000000
##D4C03B1.001.8411.4011.40
#FFFFFF1.841.0021.0021.00
#00000011.4021.001.001.00
##00000011.4021.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #d4c03b;
/* rgb */ color: rgb(212, 192, 59);
/* oklch */ color: oklch(80.2% 0.148 100.5);
Tailwind
colors: {
  custom: {
    50: '#e5d27a',
    500: '#d4c03b',
    950: '#000000',
  },
}
SCSS
$custom: #d4c03b;
$custom-light: #e5d27a;
$custom-dark: #000000;
JSON
{
  "hex": "#d4c03b",
  "rgb": {
    "r": 212,
    "g": 192,
    "b": 59
  },
  "hsl": {
    "h": 52.157,
    "s": 64.017,
    "l": 53.137
  },
  "oklch": {
    "l": 0.80174,
    "c": 0.14784,
    "h": 100.5
  },
  "luminance": 0.52012
}

Semantic roles & 50–950 ramp

primary
#D4C03B
secondary
#313C82
accent
#57E741
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#16140A
muted
#85837D

Preview Lab

Preview with #D4C03B

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

Preview Lab → · Contrast checker → · Palette generator →

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