#D8CF4F#D8CF4F

#D8CF4F is a very light, vivid yellow. Relative luminance 0.598; OKLCH L 83.8% C 0.147 H 105.3°. Best body text is #000000 at 12.96:1 contrast (WCAG AA passes).

Color values

HEX#D8CF4F
RGBrgb(216, 207, 79)
HSLhsl(56, 64%, 58%)
HSVhsv(56, 63%, 85%)
CMYKcmyk(0%, 4.2%, 63.4%, 15.3%)
CIE-LABlab(81.72, -12.17, 62.52)
CIE-LCHlch(81.72, 63.70, 101.01°)
OKLaboklab(83.83% -0.0388 0.1418)
OKLCHoklch(83.83% 0.147 105.3)
XYZxyz(52.0449, 59.7909, 16.1949)
Luminance0.5979 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8CF4F #4F58D8
analogous
#D88A4F #D8CF4F #9DD84F
triadic
#D8CF4F #4FD8CF #CF4FD8
tetradic
#D8CF4F #4FD88A #4F58D8 #D84F9D
square
#D8CF4F #4FD88A #4F58D8 #D84F9D
split-complementary
#D8CF4F #4F9DD8 #8A4FD8
monochromatic
#8D861F #BFB62A #D8CF4F #E3DD81 #EEEAB3

Accessibility & contrast

On white

1.62
#D8CF4F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.96
#D8CF4F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8CF4F
12.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8CF4F#FFFFFF#000000##000000
##D8CF4F1.001.6212.9612.96
#FFFFFF1.621.0021.0021.00
#00000012.9621.001.001.00
##00000012.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#E0C83F
Deuteranopia (green-blind)
#E3CE57
Tritanopia (blue-blind)
#E7C2B4
Achromatopsia (no color)
#CBCBCB

Design tokens & code

CSS
--color: #d8cf4f;
/* rgb */ color: rgb(216, 207, 79);
/* oklch */ color: oklch(83.8% 0.147 105.3);
Tailwind
colors: {
  custom: {
    50: '#e7dd86',
    500: '#d8cf4f',
    950: '#000000',
  },
}
SCSS
$custom: #d8cf4f;
$custom-light: #e7dd86;
$custom-dark: #000000;
JSON
{
  "hex": "#d8cf4f",
  "rgb": {
    "r": 216,
    "g": 207,
    "b": 79
  },
  "hsl": {
    "h": 56.058,
    "s": 63.721,
    "l": 57.843
  },
  "oklch": {
    "l": 0.83826,
    "c": 0.147,
    "h": 105.3
  },
  "luminance": 0.59789
}

Semantic roles & 50–950 ramp

primary
#D8CF4F
secondary
#383E93
accent
#4CE741
background
#FFFEFC
surface
#FEFCF3
border
#D6D5CD
text
#16150C
muted
#85847F

Preview Lab

Preview with #D8CF4F

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

Preview Lab → · Contrast checker → · Palette generator →

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