#D2CD42#D2CD42

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

Color values

HEX#D2CD42
RGBrgb(210, 205, 66)
HSLhsl(58, 62%, 54%)
HSVhsv(58, 69%, 82%)
CMYKcmyk(0%, 2.4%, 68.6%, 17.6%)
CIE-LABlab(80.60, -14.41, 66.34)
CIE-LCHlch(80.60, 67.89, 102.25°)
OKLaboklab(82.79% -0.0461 0.148)
OKLCHoklch(82.79% 0.155 107.3)
XYZxyz(49.3949, 57.7593, 13.6999)
Luminance0.5776 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2CD42 #4247D2
analogous
#D28542 #D2CD42 #8FD242
triadic
#D2CD42 #42D2CD #CD42D2
tetradic
#D2CD42 #42D285 #4247D2 #D2428F
square
#D2CD42 #42D285 #4247D2 #D2428F
split-complementary
#D2CD42 #428FD2 #8542D2
monochromatic
#7C791E #ADA929 #D2CD42 #DEDA73 #EAE7A5

Accessibility & contrast

On white

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

On black

12.55
#D2CD42 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2CD42
12.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2CD42#FFFFFF#000000##000000
##D2CD421.001.6712.5512.55
#FFFFFF1.671.0021.0021.00
#00000012.5521.001.001.00
##00000012.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#DEC52C
Deuteranopia (green-blind)
#E1CA4C
Tritanopia (blue-blind)
#E1C0B1
Achromatopsia (no color)
#C8C8C8

Design tokens & code

CSS
--color: #d2cd42;
/* rgb */ color: rgb(210, 205, 66);
/* oklch */ color: oklch(82.8% 0.155 107.3);
Tailwind
colors: {
  custom: {
    50: '#e3dc7f',
    500: '#d2cd42',
    950: '#000000',
  },
}
SCSS
$custom: #d2cd42;
$custom-light: #e3dc7f;
$custom-dark: #000000;
JSON
{
  "hex": "#d2cd42",
  "rgb": {
    "r": 210,
    "g": 205,
    "b": 66
  },
  "hsl": {
    "h": 57.917,
    "s": 61.538,
    "l": 54.118
  },
  "oklch": {
    "l": 0.82785,
    "c": 0.15498,
    "h": 107.3
  },
  "luminance": 0.57758
}

Semantic roles & 50–950 ramp

primary
#D2CD42
secondary
#343784
accent
#49E543
background
#FEFEFB
surface
#FDFBF2
border
#D5D4CC
text
#16150B
muted
#84847E

Preview Lab

Preview with #D2CD42

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

Preview Lab → · Contrast checker → · Palette generator →

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