#D8CF5F#D8CF5F

#D8CF5F is a very light, vivid yellow. Relative luminance 0.601; OKLCH L 84.0% C 0.134 H 104.7°. Best body text is #000000 at 13.01:1 contrast (WCAG AA passes).

Color values

HEX#D8CF5F
RGBrgb(216, 207, 95)
HSLhsl(56, 61%, 61%)
HSVhsv(56, 56%, 85%)
CMYKcmyk(0%, 4.2%, 56%, 15.3%)
CIE-LABlab(81.87, -11.08, 55.73)
CIE-LCHlch(81.87, 56.82, 101.24°)
OKLaboklab(83.99% -0.0339 0.1295)
OKLCHoklch(83.99% 0.134 104.7)
XYZxyz(52.6990, 60.0525, 19.6396)
Luminance0.6005 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8CF5F #5F68D8
analogous
#D8925F #D8CF5F #A4D85F
triadic
#D8CF5F #5FD8CF #CF5FD8
tetradic
#D8CF5F #5FD892 #5F68D8 #D85FA4
square
#D8CF5F #5FD892 #5F68D8 #D85FA4
split-complementary
#D8CF5F #5FA4D8 #925FD8
monochromatic
#988F25 #C9BE31 #D8CF5F #E4DE90 #F0EDC1

Accessibility & contrast

On white

1.61
#D8CF5F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.01
#D8CF5F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8CF5F
13.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8CF5F#FFFFFF#000000##000000
##D8CF5F1.001.6113.0113.01
#FFFFFF1.611.0021.0021.00
#00000013.0121.001.001.00
##00000013.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#DFC854
Deuteranopia (green-blind)
#E2CE65
Tritanopia (blue-blind)
#E6C3B6
Achromatopsia (no color)
#CBCBCB

Design tokens & code

CSS
--color: #d8cf5f;
/* rgb */ color: rgb(216, 207, 95);
/* oklch */ color: oklch(84.0% 0.134 104.7);
Tailwind
colors: {
  custom: {
    50: '#e7dd90',
    500: '#d8cf5f',
    950: '#000000',
  },
}
SCSS
$custom: #d8cf5f;
$custom-light: #e7dd90;
$custom-dark: #000000;
JSON
{
  "hex": "#d8cf5f",
  "rgb": {
    "r": 216,
    "g": 207,
    "b": 95
  },
  "hsl": {
    "h": 55.537,
    "s": 60.804,
    "l": 60.98
  },
  "oklch": {
    "l": 0.83985,
    "c": 0.13382,
    "h": 104.7
  },
  "luminance": 0.60051
}

Semantic roles & 50–950 ramp

primary
#D8CF5F
secondary
#3F469C
accent
#2AC81D
background
#FFFEFC
surface
#FEFCF4
border
#D6D5CE
text
#16150D
muted
#85847F

Preview Lab

Preview with #D8CF5F

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

Preview Lab → · Contrast checker → · Palette generator →

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