#D2CF42#D2CF42

#D2CF42 is a very light, vivid yellow. Relative luminance 0.587; OKLCH L 83.2% C 0.157 H 108.2°. Best body text is #000000 at 12.74:1 contrast (WCAG AA passes).

Color values

HEX#D2CF42
RGBrgb(210, 207, 66)
HSLhsl(59, 62%, 54%)
HSVhsv(59, 69%, 82%)
CMYKcmyk(0%, 1.4%, 68.6%, 17.6%)
CIE-LABlab(81.14, -15.41, 66.87)
CIE-LCHlch(81.14, 68.62, 102.97°)
OKLaboklab(83.21% -0.0489 0.1491)
OKLCHoklch(83.21% 0.157 108.2)
XYZxyz(49.8763, 58.7222, 13.8604)
Luminance0.5872 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2CF42 #4245D2
analogous
#D28742 #D2CF42 #8DD242
triadic
#D2CF42 #42D2CF #CF42D2
tetradic
#D2CF42 #42D287 #4245D2 #D2428D
square
#D2CF42 #42D287 #4245D2 #D2428D
split-complementary
#D2CF42 #428DD2 #8742D2
monochromatic
#7C7A1E #ADAB29 #D2CF42 #DEDC73 #EAE8A5

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##D2CF42#FFFFFF#000000##000000
##D2CF421.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)
#E0C72C
Deuteranopia (green-blind)
#E2CC4C
Tritanopia (blue-blind)
#E1C2B3
Achromatopsia (no color)
#C9C9C9

Design tokens & code

CSS
--color: #d2cf42;
/* rgb */ color: rgb(210, 207, 66);
/* oklch */ color: oklch(83.2% 0.157 108.2);
Tailwind
colors: {
  custom: {
    50: '#e3dd7f',
    500: '#d2cf42',
    950: '#000000',
  },
}
SCSS
$custom: #d2cf42;
$custom-light: #e3dd7f;
$custom-dark: #000000;
JSON
{
  "hex": "#d2cf42",
  "rgb": {
    "r": 210,
    "g": 207,
    "b": 66
  },
  "hsl": {
    "h": 58.75,
    "s": 61.538,
    "l": 54.118
  },
  "oklch": {
    "l": 0.83211,
    "c": 0.15691,
    "h": 108.2
  },
  "luminance": 0.58721
}

Semantic roles & 50–950 ramp

primary
#D2CF42
secondary
#343684
accent
#47E543
background
#FEFEFB
surface
#FDFCF2
border
#D5D5CC
text
#16150B
muted
#84847E

Preview Lab

Preview with #D2CF42

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

Preview Lab → · Contrast checker → · Palette generator →

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