#D8CF48#D8CF48

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

Color values

HEX#D8CF48
RGBrgb(216, 207, 72)
HSLhsl(56, 65%, 56%)
HSVhsv(56, 67%, 85%)
CMYKcmyk(0%, 4.2%, 66.7%, 15.3%)
CIE-LABlab(81.67, -12.58, 65.28)
CIE-LCHlch(81.67, 66.48, 100.90°)
OKLaboklab(83.77% -0.0407 0.1465)
OKLCHoklch(83.77% 0.152 105.5)
XYZxyz(51.8034, 59.6943, 14.9230)
Luminance0.5969 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8CF48 #4851D8
analogous
#D88748 #D8CF48 #99D848
triadic
#D8CF48 #48D8CF #CF48D8
tetradic
#D8CF48 #48D887 #4851D8 #D84899
square
#D8CF48 #48D887 #4851D8 #D84899
split-complementary
#D8CF48 #4899D8 #8748D8
monochromatic
#89821D #BBB228 #D8CF48 #E3DC7A #EEE9AD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##D8CF48#FFFFFF#000000##000000
##D8CF481.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)
#E0C835
Deuteranopia (green-blind)
#E4CE51
Tritanopia (blue-blind)
#E7C2B4
Achromatopsia (no color)
#CBCBCB

Design tokens & code

CSS
--color: #d8cf48;
/* rgb */ color: rgb(216, 207, 72);
/* oklch */ color: oklch(83.8% 0.152 105.5);
Tailwind
colors: {
  custom: {
    50: '#e7dd82',
    500: '#d8cf48',
    950: '#000000',
  },
}
SCSS
$custom: #d8cf48;
$custom-light: #e7dd82;
$custom-dark: #000000;
JSON
{
  "hex": "#d8cf48",
  "rgb": {
    "r": 216,
    "g": 207,
    "b": 72
  },
  "hsl": {
    "h": 56.25,
    "s": 64.865,
    "l": 56.471
  },
  "oklch": {
    "l": 0.83768,
    "c": 0.15208,
    "h": 105.5
  },
  "luminance": 0.59692
}

Semantic roles & 50–950 ramp

primary
#D8CF48
secondary
#363B8F
accent
#4AE840
background
#FFFEFB
surface
#FEFCF2
border
#D6D5CC
text
#16150B
muted
#85847E

Preview Lab

Preview with #D8CF48

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

Preview Lab → · Contrast checker → · Palette generator →

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