#D4C74B#D4C74B

#D4C74B is a light, vivid yellow. Relative luminance 0.554; OKLCH L 81.8% C 0.143 H 103.3°. Best body text is #000000 at 12.07:1 contrast (WCAG AA passes).

Color values

HEX#D4C74B
RGBrgb(212, 199, 75)
HSLhsl(54, 61%, 56%)
HSVhsv(54, 65%, 83%)
CMYKcmyk(0%, 6.1%, 64.6%, 16.9%)
CIE-LABlab(79.24, -10.04, 61.46)
CIE-LCHlch(79.24, 62.27, 99.28°)
OKLaboklab(81.76% -0.0329 0.1391)
OKLCHoklch(81.76% 0.143 103.3)
XYZxyz(48.8467, 55.3538, 14.7666)
Luminance0.5535 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D4C74B #4B58D4
analogous
#D4834B #D4C74B #9DD44B
triadic
#D4C74B #4BD4C7 #C74BD4
tetradic
#D4C74B #4BD483 #4B58D4 #D44B9D
square
#D4C74B #4BD483 #4B58D4 #D44B9D
split-complementary
#D4C74B #4B9DD4 #834BD4
monochromatic
#857B20 #B6A92C #D4C74B #E0D67C #ECE6AE

Accessibility & contrast

On white

1.74
#D4C74B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.07
#D4C74B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D4C74B
12.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D4C74B#FFFFFF#000000##000000
##D4C74B1.001.7412.0712.07
#FFFFFF1.741.0021.0021.00
#00000012.0721.001.001.00
##00000012.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#D8C13B
Deuteranopia (green-blind)
#DCC752
Tritanopia (blue-blind)
#E3BAAD
Achromatopsia (no color)
#C4C4C4

Design tokens & code

CSS
--color: #d4c74b;
/* rgb */ color: rgb(212, 199, 75);
/* oklch */ color: oklch(81.8% 0.143 103.3);
Tailwind
colors: {
  custom: {
    50: '#e4d783',
    500: '#d4c74b',
    950: '#000000',
  },
}
SCSS
$custom: #d4c74b;
$custom-light: #e4d783;
$custom-dark: #000000;
JSON
{
  "hex": "#d4c74b",
  "rgb": {
    "r": 212,
    "g": 199,
    "b": 75
  },
  "hsl": {
    "h": 54.307,
    "s": 61.435,
    "l": 56.275
  },
  "oklch": {
    "l": 0.81763,
    "c": 0.1429,
    "h": 103.3
  },
  "luminance": 0.55352
}

Semantic roles & 50–950 ramp

primary
#D4C74B
secondary
#38408C
accent
#53E543
background
#FEFEFB
surface
#FDFBF2
border
#D5D4CC
text
#16140B
muted
#84837E

Preview Lab

Preview with #D4C74B

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

Preview Lab → · Contrast checker → · Palette generator →

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