#D8CF47#D8CF47

#D8CF47 is a very light, vivid yellow. Relative luminance 0.597; OKLCH L 83.8% C 0.153 H 105.5°. Best body text is #000000 at 12.94:1 contrast (WCAG AA passes).

Color values

HEX#D8CF47
RGBrgb(216, 207, 71)
HSLhsl(56, 65%, 56%)
HSVhsv(56, 67%, 85%)
CMYKcmyk(0%, 4.2%, 67.1%, 15.3%)
CIE-LABlab(81.66, -12.63, 65.66)
CIE-LCHlch(81.66, 66.87, 100.89°)
OKLaboklab(83.76% -0.0409 0.1472)
OKLCHoklch(83.76% 0.153 105.5)
XYZxyz(51.7710, 59.6814, 14.7526)
Luminance0.5968 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8CF47 #4750D8
analogous
#D88747 #D8CF47 #99D847
triadic
#D8CF47 #47D8CF #CF47D8
tetradic
#D8CF47 #47D887 #4750D8 #D84799
square
#D8CF47 #47D887 #4750D8 #D84799
split-complementary
#D8CF47 #4799D8 #8747D8
monochromatic
#88811D #BAB127 #D8CF47 #E3DC79 #EDE9AC

Accessibility & contrast

On white

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

On black

12.94
#D8CF47 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8CF47
12.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8CF47#FFFFFF#000000##000000
##D8CF471.001.6212.9412.94
#FFFFFF1.621.0021.0021.00
#00000012.9421.001.001.00
##00000012.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#E0C833
Deuteranopia (green-blind)
#E4CE50
Tritanopia (blue-blind)
#E7C1B4
Achromatopsia (no color)
#CBCBCB

Design tokens & code

CSS
--color: #d8cf47;
/* rgb */ color: rgb(216, 207, 71);
/* oklch */ color: oklch(83.8% 0.153 105.5);
Tailwind
colors: {
  custom: {
    50: '#e7dd82',
    500: '#d8cf47',
    950: '#000000',
  },
}
SCSS
$custom: #d8cf47;
$custom-light: #e7dd82;
$custom-dark: #000000;
JSON
{
  "hex": "#d8cf47",
  "rgb": {
    "r": 216,
    "g": 207,
    "b": 71
  },
  "hsl": {
    "h": 56.276,
    "s": 65.022,
    "l": 56.275
  },
  "oklch": {
    "l": 0.8376,
    "c": 0.15277,
    "h": 105.5
  },
  "luminance": 0.5968
}

Semantic roles & 50–950 ramp

primary
#D8CF47
secondary
#353B8E
accent
#4AE840
background
#FFFEFB
surface
#FEFCF2
border
#D6D5CC
text
#16150B
muted
#85847E

Preview Lab

Preview with #D8CF47

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

Preview Lab → · Contrast checker → · Palette generator →

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