#D1CF42#D1CF42

#D1CF42 is a very light, vivid yellow. Relative luminance 0.586; OKLCH L 83.1% C 0.157 H 108.6°. Best body text is #000000 at 12.71:1 contrast (WCAG AA passes).

Color values

HEX#D1CF42
RGBrgb(209, 207, 66)
HSLhsl(59, 61%, 54%)
HSVhsv(59, 68%, 82%)
CMYKcmyk(0%, 1%, 68.4%, 18%)
CIE-LABlab(81.06, -15.83, 66.76)
CIE-LCHlch(81.06, 68.61, 103.33°)
OKLaboklab(83.13% -0.05 0.1489)
OKLCHoklch(83.13% 0.157 108.6)
XYZxyz(49.5925, 58.5758, 13.8471)
Luminance0.5857 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D1CF42 #4244D1
analogous
#D18842 #D1CF42 #8CD142
triadic
#D1CF42 #42D1CF #CF42D1
tetradic
#D1CF42 #42D188 #4244D1 #D1428C
square
#D1CF42 #42D188 #4244D1 #D1428C
split-complementary
#D1CF42 #428CD1 #8842D1
monochromatic
#7B791E #ACAA2A #D1CF42 #DDDC73 #E9E8A4

Accessibility & contrast

On white

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

On black

12.71
#D1CF42 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D1CF42
12.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D1CF42#FFFFFF#000000##000000
##D1CF421.001.6512.7112.71
#FFFFFF1.651.0021.0021.00
#00000012.7121.001.001.00
##00000012.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#E0C72C
Deuteranopia (green-blind)
#E2CC4C
Tritanopia (blue-blind)
#E0C2B3
Achromatopsia (no color)
#C9C9C9

Design tokens & code

CSS
--color: #d1cf42;
/* rgb */ color: rgb(209, 207, 66);
/* oklch */ color: oklch(83.1% 0.157 108.6);
Tailwind
colors: {
  custom: {
    50: '#e3dd7f',
    500: '#d1cf42',
    950: '#000000',
  },
}
SCSS
$custom: #d1cf42;
$custom-light: #e3dd7f;
$custom-dark: #000000;
JSON
{
  "hex": "#d1cf42",
  "rgb": {
    "r": 209,
    "g": 207,
    "b": 66
  },
  "hsl": {
    "h": 59.161,
    "s": 60.851,
    "l": 53.922
  },
  "oklch": {
    "l": 0.83126,
    "c": 0.15707,
    "h": 108.6
  },
  "luminance": 0.58574
}

Semantic roles & 50–950 ramp

primary
#D1CF42
secondary
#353683
accent
#46E444
background
#FEFEFB
surface
#FDFCF2
border
#D5D5CC
text
#16150B
muted
#84847E

Preview Lab

Preview with #D1CF42

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

Preview Lab → · Contrast checker → · Palette generator →

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