#D4C74C#D4C74C

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

Color values

HEX#D4C74C
RGBrgb(212, 199, 76)
HSLhsl(54, 61%, 56%)
HSVhsv(54, 64%, 83%)
CMYKcmyk(0%, 6.1%, 64.2%, 16.9%)
CIE-LABlab(79.25, -9.98, 61.05)
CIE-LCHlch(79.25, 61.86, 99.28°)
OKLaboklab(81.77% -0.0326 0.1384)
OKLCHoklch(81.77% 0.142 103.3)
XYZxyz(48.8812, 55.3676, 14.9483)
Luminance0.5537 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D4C74C #4C59D4
analogous
#D4834C #D4C74C #9DD44C
triadic
#D4C74C #4CD4C7 #C74CD4
tetradic
#D4C74C #4CD483 #4C59D4 #D44C9D
square
#D4C74C #4CD483 #4C59D4 #D44C9D
split-complementary
#D4C74C #4C9DD4 #834CD4
monochromatic
#867C20 #B7AA2C #D4C74C #E0D67D #ECE6AF

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##D4C74C#FFFFFF#000000##000000
##D4C74C1.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)
#D8C13D
Deuteranopia (green-blind)
#DCC753
Tritanopia (blue-blind)
#E3BAAD
Achromatopsia (no color)
#C4C4C4

Design tokens & code

CSS
--color: #d4c74c;
/* rgb */ color: rgb(212, 199, 76);
/* oklch */ color: oklch(81.8% 0.142 103.3);
Tailwind
colors: {
  custom: {
    50: '#e4d784',
    500: '#d4c74c',
    950: '#000000',
  },
}
SCSS
$custom: #d4c74c;
$custom-light: #e4d784;
$custom-dark: #000000;
JSON
{
  "hex": "#d4c74c",
  "rgb": {
    "r": 212,
    "g": 199,
    "b": 76
  },
  "hsl": {
    "h": 54.265,
    "s": 61.261,
    "l": 56.471
  },
  "oklch": {
    "l": 0.81772,
    "c": 0.14215,
    "h": 103.3
  },
  "luminance": 0.55366
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D4C74C

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

Preview Lab → · Contrast checker → · Palette generator →

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