#D4B942#D4B942

#D4B942 is a light, vivid yellow. Relative luminance 0.491; OKLCH L 78.8% C 0.138 H 96.2°. Best body text is #000000 at 10.82:1 contrast (WCAG AA passes).

Color values

HEX#D4B942
RGBrgb(212, 185, 66)
HSLhsl(49, 63%, 55%)
HSVhsv(49, 69%, 83%)
CMYKcmyk(0%, 12.7%, 68.9%, 16.9%)
CIE-LABlab(75.51, -3.33, 61.27)
CIE-LCHlch(75.51, 61.36, 93.12°)
OKLaboklab(78.78% -0.0148 0.1372)
OKLCHoklch(78.78% 0.138 96.2)
XYZxyz(45.4859, 49.0907, 12.2328)
Luminance0.4909 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D4B942 #425DD4
analogous
#D47042 #D4B942 #A6D442
triadic
#D4B942 #42D4B9 #B942D4
tetradic
#D4B942 #42D470 #425DD4 #D442A6
square
#D4B942 #42D470 #425DD4 #D442A6
split-complementary
#D4B942 #42A6D4 #7042D4
monochromatic
#7F6D1D #B19728 #D4B942 #DFCB74 #EBDEA6

Accessibility & contrast

On white

1.94
#D4B942 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.82
#D4B942 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D4B942
10.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D4B942#FFFFFF#000000##000000
##D4B9421.001.9410.8210.82
#FFFFFF1.941.0021.0021.00
#00000010.8221.001.001.00
##00000010.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#CBB532
Deuteranopia (green-blind)
#D2BE49
Tritanopia (blue-blind)
#E4ABA1
Achromatopsia (no color)
#BABABA

Design tokens & code

CSS
--color: #d4b942;
/* rgb */ color: rgb(212, 185, 66);
/* oklch */ color: oklch(78.8% 0.138 96.2);
Tailwind
colors: {
  custom: {
    50: '#e5cd7d',
    500: '#d4b942',
    950: '#000000',
  },
}
SCSS
$custom: #d4b942;
$custom-light: #e5cd7d;
$custom-dark: #000000;
JSON
{
  "hex": "#d4b942",
  "rgb": {
    "r": 212,
    "g": 185,
    "b": 66
  },
  "hsl": {
    "h": 48.904,
    "s": 62.931,
    "l": 54.51
  },
  "oklch": {
    "l": 0.78777,
    "c": 0.13799,
    "h": 96.2
  },
  "luminance": 0.49088
}

Semantic roles & 50–950 ramp

primary
#D4B942
secondary
#9AA5D8
accent
#60E642
background
#FEFCF7
surface
#FDF8EE
border
#D5D1C9
text
#16130A
muted
#84827C

Preview Lab

Preview with #D4B942

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

Preview Lab → · Contrast checker → · Palette generator →

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