#D4C54E#D4C54E

#D4C54E is a light, vivid yellow. Relative luminance 0.545; OKLCH L 81.4% C 0.139 H 102.1°. Best body text is #000000 at 11.90:1 contrast (WCAG AA passes).

Color values

HEX#D4C54E
RGBrgb(212, 197, 78)
HSLhsl(53, 61%, 57%)
HSVhsv(53, 63%, 83%)
CMYKcmyk(0%, 7.1%, 63.2%, 16.9%)
CIE-LABlab(78.74, -8.83, 59.67)
CIE-LCHlch(78.74, 60.32, 98.42°)
OKLaboklab(81.37% -0.0292 0.1357)
OKLCHoklch(81.37% 0.139 102.1)
XYZxyz(48.4947, 54.4816, 15.1678)
Luminance0.5448 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D4C54E #4E5DD4
analogous
#D4824E #D4C54E #A0D44E
triadic
#D4C54E #4ED4C5 #C54ED4
tetradic
#D4C54E #4ED482 #4E5DD4 #D44EA0
square
#D4C54E #4ED482 #4E5DD4 #D44EA0
split-complementary
#D4C54E #4EA0D4 #824ED4
monochromatic
#877B21 #B8A82D #D4C54E #E0D57F #ECE5B0

Accessibility & contrast

On white

1.77
#D4C54E on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.90
#D4C54E on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D4C54E
11.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D4C54E#FFFFFF#000000##000000
##D4C54E1.001.7711.9011.90
#FFFFFF1.771.0021.0021.00
#00000011.9021.001.001.00
##00000011.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#D6BF40
Deuteranopia (green-blind)
#DBC655
Tritanopia (blue-blind)
#E3B8AC
Achromatopsia (no color)
#C3C3C3

Design tokens & code

CSS
--color: #d4c54e;
/* rgb */ color: rgb(212, 197, 78);
/* oklch */ color: oklch(81.4% 0.139 102.1);
Tailwind
colors: {
  custom: {
    50: '#e4d685',
    500: '#d4c54e',
    950: '#000000',
  },
}
SCSS
$custom: #d4c54e;
$custom-light: #e4d685;
$custom-dark: #000000;
JSON
{
  "hex": "#d4c54e",
  "rgb": {
    "r": 212,
    "g": 197,
    "b": 78
  },
  "hsl": {
    "h": 53.284,
    "s": 60.909,
    "l": 56.863
  },
  "oklch": {
    "l": 0.81371,
    "c": 0.13882,
    "h": 102.1
  },
  "luminance": 0.5448
}

Semantic roles & 50–950 ramp

primary
#D4C54E
secondary
#39428D
accent
#56E444
background
#FEFEFB
surface
#FDFBF2
border
#D5D4CC
text
#16140B
muted
#84837E

Preview Lab

Preview with #D4C54E

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

Preview Lab → · Contrast checker → · Palette generator →

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