#D4C74E#D4C74E

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

Color values

HEX#D4C74E
RGBrgb(212, 199, 78)
HSLhsl(54, 61%, 57%)
HSVhsv(54, 63%, 83%)
CMYKcmyk(0%, 6.1%, 63.2%, 16.9%)
CIE-LABlab(79.27, -9.85, 60.23)
CIE-LCHlch(79.27, 61.03, 99.29°)
OKLaboklab(81.79% -0.0321 0.1369)
OKLCHoklch(81.79% 0.141 103.2)
XYZxyz(48.9518, 55.3958, 15.3202)
Luminance0.5539 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D4C74E #4E5BD4
analogous
#D4844E #D4C74E #9ED44E
triadic
#D4C74E #4ED4C7 #C74ED4
tetradic
#D4C74E #4ED484 #4E5BD4 #D44E9E
square
#D4C74E #4ED484 #4E5BD4 #D44E9E
split-complementary
#D4C74E #4E9ED4 #844ED4
monochromatic
#877D21 #B8AB2D #D4C74E #E0D77F #ECE6B0

Accessibility & contrast

On white

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

On black

12.08
#D4C74E on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D4C74E
12.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D4C74E#FFFFFF#000000##000000
##D4C74E1.001.7412.0812.08
#FFFFFF1.741.0021.0021.00
#00000012.0821.001.001.00
##00000012.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#D8C13F
Deuteranopia (green-blind)
#DCC755
Tritanopia (blue-blind)
#E3BAAE
Achromatopsia (no color)
#C4C4C4

Design tokens & code

CSS
--color: #d4c74e;
/* rgb */ color: rgb(212, 199, 78);
/* oklch */ color: oklch(81.8% 0.141 103.2);
Tailwind
colors: {
  custom: {
    50: '#e4d785',
    500: '#d4c74e',
    950: '#000000',
  },
}
SCSS
$custom: #d4c74e;
$custom-light: #e4d785;
$custom-dark: #000000;
JSON
{
  "hex": "#d4c74e",
  "rgb": {
    "r": 212,
    "g": 199,
    "b": 78
  },
  "hsl": {
    "h": 54.179,
    "s": 60.909,
    "l": 56.863
  },
  "oklch": {
    "l": 0.8179,
    "c": 0.14062,
    "h": 103.2
  },
  "luminance": 0.55394
}

Semantic roles & 50–950 ramp

primary
#D4C74E
secondary
#39418D
accent
#53E444
background
#FEFEFB
surface
#FDFBF2
border
#D5D4CC
text
#16140B
muted
#84837E

Preview Lab

Preview with #D4C74E

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

Preview Lab → · Contrast checker → · Palette generator →

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