#D4B042#D4B042

#D4B042 is a light, vivid yellow. Relative luminance 0.454; OKLCH L 76.9% C 0.132 H 90.6°. Best body text is #000000 at 10.09:1 contrast (WCAG AA passes).

Color values

HEX#D4B042
RGBrgb(212, 176, 66)
HSLhsl(45, 63%, 55%)
HSVhsv(45, 69%, 83%)
CMYKcmyk(0%, 17%, 68.9%, 16.9%)
CIE-LABlab(73.18, 1.39, 58.88)
CIE-LCHlch(73.18, 58.90, 88.65°)
OKLaboklab(76.94% -0.0013 0.1322)
OKLCHoklch(76.94% 0.132 90.6)
XYZxyz(43.6624, 45.4437, 11.6249)
Luminance0.4544 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D4B042 #4266D4
analogous
#D46742 #D4B042 #AFD442
triadic
#D4B042 #42D4B0 #B042D4
tetradic
#D4B042 #42D467 #4266D4 #D442AF
square
#D4B042 #42D467 #4266D4 #D442AF
split-complementary
#D4B042 #42AFD4 #6742D4
monochromatic
#7F671D #B18F28 #D4B042 #DFC574 #EBDAA6

Accessibility & contrast

On white

2.08
#D4B042 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.09
#D4B042 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D4B042
10.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D4B042#FFFFFF#000000##000000
##D4B0421.002.0810.0910.09
#FFFFFF2.081.0021.0021.00
#00000010.0921.001.001.00
##00000010.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#C3AE34
Deuteranopia (green-blind)
#CCB847
Tritanopia (blue-blind)
#E5A299
Achromatopsia (no color)
#B4B4B4

Design tokens & code

CSS
--color: #d4b042;
/* rgb */ color: rgb(212, 176, 66);
/* oklch */ color: oklch(76.9% 0.132 90.6);
Tailwind
colors: {
  custom: {
    50: '#e5c77c',
    500: '#d4b042',
    950: '#000000',
  },
}
SCSS
$custom: #d4b042;
$custom-light: #e5c77c;
$custom-dark: #000000;
JSON
{
  "hex": "#d4b042",
  "rgb": {
    "r": 212,
    "g": 176,
    "b": 66
  },
  "hsl": {
    "h": 45.205,
    "s": 62.931,
    "l": 54.51
  },
  "oklch": {
    "l": 0.76941,
    "c": 0.13216,
    "h": 90.6
  },
  "luminance": 0.45441
}

Semantic roles & 50–950 ramp

primary
#D4B042
secondary
#9AA9D8
accent
#6AE642
background
#FEFCF7
surface
#FDF8EE
border
#D5D1C9
text
#16130A
muted
#84827C

Preview Lab

Preview with #D4B042

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

Preview Lab → · Contrast checker → · Palette generator →

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