#D8CF5B#D8CF5B

#D8CF5B is a very light, vivid yellow. Relative luminance 0.600; OKLCH L 83.9% C 0.137 H 104.8°. Best body text is #000000 at 13.00:1 contrast (WCAG AA passes).

Color values

HEX#D8CF5B
RGBrgb(216, 207, 91)
HSLhsl(56, 62%, 60%)
HSVhsv(56, 58%, 85%)
CMYKcmyk(0%, 4.2%, 57.9%, 15.3%)
CIE-LABlab(81.83, -11.37, 57.49)
CIE-LCHlch(81.83, 58.60, 101.19°)
OKLaboklab(83.94% -0.0352 0.1327)
OKLCHoklch(83.94% 0.137 104.8)
XYZxyz(52.5218, 59.9817, 18.7065)
Luminance0.5998 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8CF5B #5B64D8
analogous
#D8905B #D8CF5B #A2D85B
triadic
#D8CF5B #5BD8CF #CF5BD8
tetradic
#D8CF5B #5BD890 #5B64D8 #D85BA2
square
#D8CF5B #5BD890 #5B64D8 #D85BA2
split-complementary
#D8CF5B #5BA2D8 #905BD8
monochromatic
#958D23 #C7BC2F #D8CF5B #E4DD8C #F0ECBE

Accessibility & contrast

On white

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

On black

13.00
#D8CF5B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8CF5B
13.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8CF5B#FFFFFF#000000##000000
##D8CF5B1.001.6213.0013.00
#FFFFFF1.621.0021.0021.00
#00000013.0021.001.001.00
##00000013.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#DFC84F
Deuteranopia (green-blind)
#E3CE61
Tritanopia (blue-blind)
#E7C2B6
Achromatopsia (no color)
#CBCBCB

Design tokens & code

CSS
--color: #d8cf5b;
/* rgb */ color: rgb(216, 207, 91);
/* oklch */ color: oklch(83.9% 0.137 104.8);
Tailwind
colors: {
  custom: {
    50: '#e7dd8d',
    500: '#d8cf5b',
    950: '#000000',
  },
}
SCSS
$custom: #d8cf5b;
$custom-light: #e7dd8d;
$custom-dark: #000000;
JSON
{
  "hex": "#d8cf5b",
  "rgb": {
    "r": 216,
    "g": 207,
    "b": 91
  },
  "hsl": {
    "h": 55.68,
    "s": 61.576,
    "l": 60.196
  },
  "oklch": {
    "l": 0.83942,
    "c": 0.13732,
    "h": 104.8
  },
  "luminance": 0.5998
}

Semantic roles & 50–950 ramp

primary
#D8CF5B
secondary
#3D449A
accent
#29C91C
background
#FFFEFC
surface
#FEFCF4
border
#D6D5CE
text
#16150C
muted
#85847F

Preview Lab

Preview with #D8CF5B

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

Preview Lab → · Contrast checker → · Palette generator →

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