#D8CF54#D8CF54

#D8CF54 is a very light, vivid yellow. Relative luminance 0.599; OKLCH L 83.9% C 0.143 H 105.1°. Best body text is #000000 at 12.97:1 contrast (WCAG AA passes).

Color values

HEX#D8CF54
RGBrgb(216, 207, 84)
HSLhsl(56, 63%, 59%)
HSVhsv(56, 61%, 85%)
CMYKcmyk(0%, 4.2%, 61.1%, 15.3%)
CIE-LABlab(81.77, -11.85, 60.47)
CIE-LCHlch(81.77, 61.62, 101.09°)
OKLaboklab(83.87% -0.0373 0.1382)
OKLCHoklch(83.87% 0.143 105.1)
XYZxyz(52.2338, 59.8665, 17.1897)
Luminance0.5987 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8CF54 #545DD8
analogous
#D88D54 #D8CF54 #9FD854
triadic
#D8CF54 #54D8CF #CF54D8
tetradic
#D8CF54 #54D88D #545DD8 #D8549F
square
#D8CF54 #54D88D #545DD8 #D8549F
split-complementary
#D8CF54 #549FD8 #8D54D8
monochromatic
#918921 #C2B82C #D8CF54 #E3DD86 #EFEBB8

Accessibility & contrast

On white

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

On black

12.97
#D8CF54 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8CF54
12.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8CF54#FFFFFF#000000##000000
##D8CF541.001.6212.9712.97
#FFFFFF1.621.0021.0021.00
#00000012.9721.001.001.00
##00000012.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#E0C846
Deuteranopia (green-blind)
#E3CE5B
Tritanopia (blue-blind)
#E7C2B5
Achromatopsia (no color)
#CBCBCB

Design tokens & code

CSS
--color: #d8cf54;
/* rgb */ color: rgb(216, 207, 84);
/* oklch */ color: oklch(83.9% 0.143 105.1);
Tailwind
colors: {
  custom: {
    50: '#e7dd89',
    500: '#d8cf54',
    950: '#000000',
  },
}
SCSS
$custom: #d8cf54;
$custom-light: #e7dd89;
$custom-dark: #000000;
JSON
{
  "hex": "#d8cf54",
  "rgb": {
    "r": 216,
    "g": 207,
    "b": 84
  },
  "hsl": {
    "h": 55.909,
    "s": 62.857,
    "l": 58.824
  },
  "oklch": {
    "l": 0.83872,
    "c": 0.14311,
    "h": 105.1
  },
  "luminance": 0.59865
}

Semantic roles & 50–950 ramp

primary
#D8CF54
secondary
#3A4196
accent
#4DE642
background
#FFFEFC
surface
#FEFCF4
border
#D6D5CE
text
#16150C
muted
#85847F

Preview Lab

Preview with #D8CF54

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

Preview Lab → · Contrast checker → · Palette generator →

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