#D4CD4F#D4CD4F

#D4CD4F is a very light, vivid yellow. Relative luminance 0.582; OKLCH L 83.1% C 0.145 H 106.1°. Best body text is #000000 at 12.64:1 contrast (WCAG AA passes).

Color values

HEX#D4CD4F
RGBrgb(212, 205, 79)
HSLhsl(57, 61%, 57%)
HSVhsv(57, 63%, 83%)
CMYKcmyk(0%, 3.3%, 62.7%, 16.9%)
CIE-LABlab(80.86, -12.83, 61.51)
CIE-LCHlch(80.86, 62.84, 101.78°)
OKLaboklab(83.06% -0.0404 0.1398)
OKLCHoklch(83.06% 0.145 106.1)
XYZxyz(50.3957, 58.2259, 15.9797)
Luminance0.5822 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D4CD4F #4F56D4
analogous
#D48B4F #D4CD4F #99D44F
triadic
#D4CD4F #4FD4CD #CD4FD4
tetradic
#D4CD4F #4FD48B #4F56D4 #D44F99
square
#D4CD4F #4FD48B #4F56D4 #D44F99
split-complementary
#D4CD4F #4F99D4 #8B4FD4
monochromatic
#878221 #B9B12D #D4CD4F #E0DB80 #ECE9B1

Accessibility & contrast

On white

1.66
#D4CD4F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.64
#D4CD4F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D4CD4F
12.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D4CD4F#FFFFFF#000000##000000
##D4CD4F1.001.6612.6412.64
#FFFFFF1.661.0021.0021.00
#00000012.6421.001.001.00
##00000012.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#DEC63F
Deuteranopia (green-blind)
#E1CB57
Tritanopia (blue-blind)
#E3C0B3
Achromatopsia (no color)
#C9C9C9

Design tokens & code

CSS
--color: #d4cd4f;
/* rgb */ color: rgb(212, 205, 79);
/* oklch */ color: oklch(83.1% 0.145 106.1);
Tailwind
colors: {
  custom: {
    50: '#e4dc86',
    500: '#d4cd4f',
    950: '#000000',
  },
}
SCSS
$custom: #d4cd4f;
$custom-light: #e4dc86;
$custom-dark: #000000;
JSON
{
  "hex": "#d4cd4f",
  "rgb": {
    "r": 212,
    "g": 205,
    "b": 79
  },
  "hsl": {
    "h": 56.842,
    "s": 60.731,
    "l": 57.059
  },
  "oklch": {
    "l": 0.83062,
    "c": 0.14548,
    "h": 106.1
  },
  "luminance": 0.58224
}

Semantic roles & 50–950 ramp

primary
#D4CD4F
secondary
#393E8E
accent
#4CE444
background
#FEFEFC
surface
#FDFBF3
border
#D5D4CD
text
#16150C
muted
#84847F

Preview Lab

Preview with #D4CD4F

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

Preview Lab → · Contrast checker → · Palette generator →

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