#D1CD4F#D1CD4F

#D1CD4F is a very light, vivid yellow. Relative luminance 0.578; OKLCH L 82.8% C 0.146 H 107.5°. Best body text is #000000 at 12.56:1 contrast (WCAG AA passes).

Color values

HEX#D1CD4F
RGBrgb(209, 205, 79)
HSLhsl(58, 59%, 56%)
HSVhsv(58, 62%, 82%)
CMYKcmyk(0%, 1.9%, 62.2%, 18%)
CIE-LABlab(80.62, -14.08, 61.18)
CIE-LCHlch(80.62, 62.78, 102.96°)
OKLaboklab(82.81% -0.0438 0.1391)
OKLCHoklch(82.81% 0.146 107.5)
XYZxyz(49.5387, 57.7840, 15.9395)
Luminance0.5778 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D1CD4F #4F53D1
analogous
#D18C4F #D1CD4F #94D14F
triadic
#D1CD4F #4FD1CD #CD4FD1
tetradic
#D1CD4F #4FD18C #4F53D1 #D14F94
square
#D1CD4F #4FD18C #4F53D1 #D14F94
split-complementary
#D1CD4F #4F94D1 #8C4FD1
monochromatic
#838022 #B4B02F #D1CD4F #DEDB80 #EAE9B0

Accessibility & contrast

On white

1.67
#D1CD4F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.56
#D1CD4F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D1CD4F
12.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D1CD4F#FFFFFF#000000##000000
##D1CD4F1.001.6712.5612.56
#FFFFFF1.671.0021.0021.00
#00000012.5621.001.001.00
##00000012.5621.001.001.00

Color blindness preview

Protanopia (red-blind)
#DDC53F
Deuteranopia (green-blind)
#E0CA57
Tritanopia (blue-blind)
#DFC0B3
Achromatopsia (no color)
#C8C8C8

Design tokens & code

CSS
--color: #d1cd4f;
/* rgb */ color: rgb(209, 205, 79);
/* oklch */ color: oklch(82.8% 0.146 107.5);
Tailwind
colors: {
  custom: {
    50: '#e2dc86',
    500: '#d1cd4f',
    950: '#000000',
  },
}
SCSS
$custom: #d1cd4f;
$custom-light: #e2dc86;
$custom-dark: #000000;
JSON
{
  "hex": "#d1cd4f",
  "rgb": {
    "r": 209,
    "g": 205,
    "b": 79
  },
  "hsl": {
    "h": 58.154,
    "s": 58.559,
    "l": 56.471
  },
  "oklch": {
    "l": 0.82806,
    "c": 0.14585,
    "h": 107.5
  },
  "luminance": 0.57782
}

Semantic roles & 50–950 ramp

primary
#D1CD4F
secondary
#3A3C8A
accent
#4BE246
background
#FEFEFC
surface
#FDFBF3
border
#D5D4CD
text
#16150B
muted
#84847E

Preview Lab

Preview with #D1CD4F

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

Preview Lab → · Contrast checker → · Palette generator →

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