#D2CD7F#D2CD7F

#D2CD7F is a very light, moderate yellow. Relative luminance 0.589; OKLCH L 83.5% C 0.100 H 105.2°. Best body text is #000000 at 12.78:1 contrast (WCAG AA passes).

Color values

HEX#D2CD7F
RGBrgb(210, 205, 127)
HSLhsl(56, 48%, 66%)
HSVhsv(56, 40%, 82%)
CMYKcmyk(0%, 2.4%, 39.5%, 17.6%)
CIE-LABlab(81.24, -9.55, 39.43)
CIE-LCHlch(81.24, 40.57, 103.61°)
OKLaboklab(83.49% -0.0261 0.0961)
OKLCHoklch(83.49% 0.1 105.2)
XYZxyz(52.2413, 58.8978, 28.6910)
Luminance0.5890 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2CD7F #7F84D2
analogous
#D2A37F #D2CD7F #ADD27F
triadic
#D2CD7F #7FD2CD #CD7FD2
tetradic
#D2CD7F #7FD2A3 #7F84D2 #D27FAD
square
#D2CD7F #7FD2A3 #7F84D2 #D27FAD
split-complementary
#D2CD7F #7FADD2 #A37FD2
monochromatic
#9F9938 #C2BB52 #D2CD7F #E2DFAC #F2F0DA

Accessibility & contrast

On white

1.64
#D2CD7F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.78
#D2CD7F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2CD7F
12.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2CD7F#FFFFFF#000000##000000
##D2CD7F1.001.6412.7812.78
#FFFFFF1.641.0021.0021.00
#00000012.7821.001.001.00
##00000012.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#D9C879
Deuteranopia (green-blind)
#DCCC82
Tritanopia (blue-blind)
#DDC4BA
Achromatopsia (no color)
#CACACA

Design tokens & code

CSS
--color: #d2cd7f;
/* rgb */ color: rgb(210, 205, 127);
/* oklch */ color: oklch(83.5% 0.100 105.2);
Tailwind
colors: {
  custom: {
    50: '#e1dca5',
    500: '#d2cd7f',
    950: '#000000',
  },
}
SCSS
$custom: #d2cd7f;
$custom-light: #e1dca5;
$custom-dark: #000000;
JSON
{
  "hex": "#d2cd7f",
  "rgb": {
    "r": 210,
    "g": 205,
    "b": 127
  },
  "hsl": {
    "h": 56.386,
    "s": 47.977,
    "l": 66.078
  },
  "oklch": {
    "l": 0.8349,
    "c": 0.0996,
    "h": 105.2
  },
  "luminance": 0.58897
}

Semantic roles & 50–950 ramp

primary
#D2CD7F
secondary
#5156A4
accent
#33BB2A
background
#FEFEFC
surface
#FCFBF6
border
#D5D4D0
text
#15150F
muted
#848480

Preview Lab

Preview with #D2CD7F

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

Preview Lab → · Contrast checker → · Palette generator →

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