#D8CF52#D8CF52

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

Color values

HEX#D8CF52
RGBrgb(216, 207, 82)
HSLhsl(56, 63%, 58%)
HSVhsv(56, 62%, 85%)
CMYKcmyk(0%, 4.2%, 62%, 15.3%)
CIE-LABlab(81.75, -11.98, 61.30)
CIE-LCHlch(81.75, 62.46, 101.06°)
OKLaboklab(83.85% -0.0379 0.1396)
OKLCHoklch(83.85% 0.145 105.2)
XYZxyz(52.1566, 59.8356, 16.7830)
Luminance0.5983 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8CF52 #525BD8
analogous
#D88C52 #D8CF52 #9ED852
triadic
#D8CF52 #52D8CF #CF52D8
tetradic
#D8CF52 #52D88C #525BD8 #D8529E
square
#D8CF52 #52D88C #525BD8 #D8529E
split-complementary
#D8CF52 #529ED8 #8C52D8
monochromatic
#8F8820 #C1B72C #D8CF52 #E3DD84 #EFEBB6

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##D8CF52#FFFFFF#000000##000000
##D8CF521.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)
#E0C843
Deuteranopia (green-blind)
#E3CE59
Tritanopia (blue-blind)
#E7C2B5
Achromatopsia (no color)
#CBCBCB

Design tokens & code

CSS
--color: #d8cf52;
/* rgb */ color: rgb(216, 207, 82);
/* oklch */ color: oklch(83.9% 0.145 105.2);
Tailwind
colors: {
  custom: {
    50: '#e7dd88',
    500: '#d8cf52',
    950: '#000000',
  },
}
SCSS
$custom: #d8cf52;
$custom-light: #e7dd88;
$custom-dark: #000000;
JSON
{
  "hex": "#d8cf52",
  "rgb": {
    "r": 216,
    "g": 207,
    "b": 82
  },
  "hsl": {
    "h": 55.97,
    "s": 63.208,
    "l": 58.431
  },
  "oklch": {
    "l": 0.83854,
    "c": 0.14469,
    "h": 105.2
  },
  "luminance": 0.59834
}

Semantic roles & 50–950 ramp

primary
#D8CF52
secondary
#394095
accent
#4DE642
background
#FFFEFC
surface
#FEFCF4
border
#D6D5CE
text
#16150C
muted
#85847F

Preview Lab

Preview with #D8CF52

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

Preview Lab → · Contrast checker → · Palette generator →

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