#D2CD78#D2CD78

#D2CD78 is a very light, moderate yellow. Relative luminance 0.587; OKLCH L 83.4% C 0.107 H 105.6°. Best body text is #000000 at 12.74:1 contrast (WCAG AA passes).

Color values

HEX#D2CD78
RGBrgb(210, 205, 120)
HSLhsl(57, 50%, 65%)
HSVhsv(57, 43%, 82%)
CMYKcmyk(0%, 2.4%, 42.9%, 17.6%)
CIE-LABlab(81.14, -10.28, 42.81)
CIE-LCHlch(81.14, 44.03, 103.51°)
OKLaboklab(83.38% -0.0288 0.1034)
OKLCHoklch(83.38% 0.107 105.6)
XYZxyz(51.8008, 58.7217, 26.3713)
Luminance0.5872 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2CD78 #787DD2
analogous
#D2A078 #D2CD78 #AAD278
triadic
#D2CD78 #78D2CD #CD78D2
tetradic
#D2CD78 #78D2A0 #787DD2 #D278AA
square
#D2CD78 #78D2A0 #787DD2 #D278AA
split-complementary
#D2CD78 #78AAD2 #A078D2
monochromatic
#9C9634 #C3BC4A #D2CD78 #E1DEA6 #F1EFD4

Accessibility & contrast

On white

1.65
#D2CD78 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.74
#D2CD78 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2CD78
12.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2CD78#FFFFFF#000000##000000
##D2CD781.001.6512.7412.74
#FFFFFF1.651.0021.0021.00
#00000012.7421.001.001.00
##00000012.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#DAC771
Deuteranopia (green-blind)
#DCCB7C
Tritanopia (blue-blind)
#DEC3B8
Achromatopsia (no color)
#C9C9C9

Design tokens & code

CSS
--color: #d2cd78;
/* rgb */ color: rgb(210, 205, 120);
/* oklch */ color: oklch(83.4% 0.107 105.6);
Tailwind
colors: {
  custom: {
    50: '#e1dca0',
    500: '#d2cd78',
    950: '#000000',
  },
}
SCSS
$custom: #d2cd78;
$custom-light: #e1dca0;
$custom-dark: #000000;
JSON
{
  "hex": "#d2cd78",
  "rgb": {
    "r": 210,
    "g": 205,
    "b": 120
  },
  "hsl": {
    "h": 56.667,
    "s": 50,
    "l": 64.706
  },
  "oklch": {
    "l": 0.83381,
    "c": 0.10732,
    "h": 105.6
  },
  "luminance": 0.5872
}

Semantic roles & 50–950 ramp

primary
#D2CD78
secondary
#4D52A1
accent
#30BD28
background
#FEFEFC
surface
#FCFBF5
border
#D5D4CF
text
#15150F
muted
#848480

Preview Lab

Preview with #D2CD78

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

Preview Lab → · Contrast checker → · Palette generator →

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