#D4C042#D4C042

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

Color values

HEX#D4C042
RGBrgb(212, 192, 66)
HSLhsl(52, 63%, 55%)
HSVhsv(52, 69%, 83%)
CMYKcmyk(0%, 9.4%, 68.9%, 16.9%)
CIE-LABlab(77.34, -6.96, 63.12)
CIE-LCHlch(77.34, 63.50, 96.29°)
OKLaboklab(80.23% -0.0251 0.1411)
OKLCHoklch(80.23% 0.143 100.1)
XYZxyz(46.9865, 52.0918, 12.7330)
Luminance0.5209 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D4C042 #4256D4
analogous
#D47742 #D4C042 #9FD442
triadic
#D4C042 #42D4C0 #C042D4
tetradic
#D4C042 #42D477 #4256D4 #D4429F
square
#D4C042 #42D477 #4256D4 #D4429F
split-complementary
#D4C042 #429FD4 #7742D4
monochromatic
#7F711D #B19E28 #D4C042 #DFD174 #EBE1A6

Accessibility & contrast

On white

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

On black

11.42
#D4C042 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D4C042
11.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D4C042#FFFFFF#000000##000000
##D4C0421.001.8411.4211.42
#FFFFFF1.841.0021.0021.00
#00000011.4221.001.001.00
##00000011.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#D2BB30
Deuteranopia (green-blind)
#D7C24A
Tritanopia (blue-blind)
#E4B2A7
Achromatopsia (no color)
#BFBFBF

Design tokens & code

CSS
--color: #d4c042;
/* rgb */ color: rgb(212, 192, 66);
/* oklch */ color: oklch(80.2% 0.143 100.1);
Tailwind
colors: {
  custom: {
    50: '#e5d27d',
    500: '#d4c042',
    950: '#000000',
  },
}
SCSS
$custom: #d4c042;
$custom-light: #e5d27d;
$custom-dark: #000000;
JSON
{
  "hex": "#d4c042",
  "rgb": {
    "r": 212,
    "g": 192,
    "b": 66
  },
  "hsl": {
    "h": 51.781,
    "s": 62.931,
    "l": 54.51
  },
  "oklch": {
    "l": 0.80226,
    "c": 0.14333,
    "h": 100.1
  },
  "luminance": 0.5209
}

Semantic roles & 50–950 ramp

primary
#D4C042
secondary
#343F86
accent
#58E642
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#16140A
muted
#85837D

Preview Lab

Preview with #D4C042

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

Preview Lab → · Contrast checker → · Palette generator →

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