#D8CF5A#D8CF5A

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

Color values

HEX#D8CF5A
RGBrgb(216, 207, 90)
HSLhsl(56, 62%, 60%)
HSVhsv(56, 58%, 85%)
CMYKcmyk(0%, 4.2%, 58.3%, 15.3%)
CIE-LABlab(81.82, -11.44, 57.92)
CIE-LCHlch(81.82, 59.04, 101.18°)
OKLaboklab(83.93% -0.0355 0.1335)
OKLCHoklch(83.93% 0.138 104.9)
XYZxyz(52.4789, 59.9645, 18.4808)
Luminance0.5996 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8CF5A #5A63D8
analogous
#D8905A #D8CF5A #A2D85A
triadic
#D8CF5A #5AD8CF #CF5AD8
tetradic
#D8CF5A #5AD890 #5A63D8 #D85AA2
square
#D8CF5A #5AD890 #5A63D8 #D85AA2
split-complementary
#D8CF5A #5AA2D8 #905AD8
monochromatic
#958C23 #C6BB2F #D8CF5A #E4DD8B #EFECBD

Accessibility & contrast

On white

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

On black

12.99
#D8CF5A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8CF5A
12.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8CF5A#FFFFFF#000000##000000
##D8CF5A1.001.6212.9912.99
#FFFFFF1.621.0021.0021.00
#00000012.9921.001.001.00
##00000012.9921.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #d8cf5a;
/* rgb */ color: rgb(216, 207, 90);
/* oklch */ color: oklch(83.9% 0.138 104.9);
Tailwind
colors: {
  custom: {
    50: '#e7dd8d',
    500: '#d8cf5a',
    950: '#000000',
  },
}
SCSS
$custom: #d8cf5a;
$custom-light: #e7dd8d;
$custom-dark: #000000;
JSON
{
  "hex": "#d8cf5a",
  "rgb": {
    "r": 216,
    "g": 207,
    "b": 90
  },
  "hsl": {
    "h": 55.714,
    "s": 61.765,
    "l": 60
  },
  "oklch": {
    "l": 0.83932,
    "c": 0.13817,
    "h": 104.9
  },
  "luminance": 0.59963
}

Semantic roles & 50–950 ramp

primary
#D8CF5A
secondary
#3D4399
accent
#4FE543
background
#FFFEFC
surface
#FEFCF4
border
#D6D5CE
text
#16150C
muted
#85847F

Preview Lab

Preview with #D8CF5A

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

Preview Lab → · Contrast checker → · Palette generator →

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