#D1CF40#D1CF40

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

Color values

HEX#D1CF40
RGBrgb(209, 207, 64)
HSLhsl(59, 61%, 54%)
HSVhsv(59, 69%, 82%)
CMYKcmyk(0%, 1%, 69.4%, 18%)
CIE-LABlab(81.05, -15.93, 67.49)
CIE-LCHlch(81.05, 69.34, 103.28°)
OKLaboklab(83.11% -0.0505 0.1501)
OKLCHoklch(83.11% 0.158 108.6)
XYZxyz(49.5345, 58.5527, 13.5420)
Luminance0.5855 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D1CF40 #4042D1
analogous
#D18640 #D1CF40 #8AD140
triadic
#D1CF40 #40D1CF #CF40D1
tetradic
#D1CF40 #40D186 #4042D1 #D1408A
square
#D1CF40 #40D186 #4042D1 #D1408A
split-complementary
#D1CF40 #408AD1 #8640D1
monochromatic
#79781D #ABA929 #D1CF40 #DDDB71 #E9E8A3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##D1CF40#FFFFFF#000000##000000
##D1CF401.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)
#E0C728
Deuteranopia (green-blind)
#E2CC4A
Tritanopia (blue-blind)
#E0C2B3
Achromatopsia (no color)
#C9C9C9

Design tokens & code

CSS
--color: #d1cf40;
/* rgb */ color: rgb(209, 207, 64);
/* oklch */ color: oklch(83.1% 0.158 108.6);
Tailwind
colors: {
  custom: {
    50: '#e3dd7e',
    500: '#d1cf40',
    950: '#000000',
  },
}
SCSS
$custom: #d1cf40;
$custom-light: #e3dd7e;
$custom-dark: #000000;
JSON
{
  "hex": "#d1cf40",
  "rgb": {
    "r": 209,
    "g": 207,
    "b": 64
  },
  "hsl": {
    "h": 59.172,
    "s": 61.181,
    "l": 53.529
  },
  "oklch": {
    "l": 0.83112,
    "c": 0.15835,
    "h": 108.6
  },
  "luminance": 0.58551
}

Semantic roles & 50–950 ramp

primary
#D1CF40
secondary
#343581
accent
#46E444
background
#FEFEFB
surface
#FDFCF2
border
#D5D5CC
text
#16150A
muted
#84847D

Preview Lab

Preview with #D1CF40

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

Preview Lab → · Contrast checker → · Palette generator →

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