#D8CA51#D8CA51

#D8CA51 is a very light, vivid yellow. Relative luminance 0.574; OKLCH L 82.8% C 0.141 H 102.7°. Best body text is #000000 at 12.49:1 contrast (WCAG AA passes).

Color values

HEX#D8CA51
RGBrgb(216, 202, 81)
HSLhsl(54, 63%, 58%)
HSVhsv(54, 63%, 85%)
CMYKcmyk(0%, 6.5%, 62.5%, 15.3%)
CIE-LABlab(80.42, -9.52, 60.30)
CIE-LCHlch(80.42, 61.05, 98.97°)
OKLaboklab(82.8% -0.031 0.1374)
OKLCHoklch(82.8% 0.141 102.7)
XYZxyz(50.9266, 57.4360, 16.1867)
Luminance0.5743 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8CA51 #515FD8
analogous
#D88651 #D8CA51 #A2D851
triadic
#D8CA51 #51D8CA #CA51D8
tetradic
#D8CA51 #51D886 #515FD8 #D851A2
square
#D8CA51 #51D886 #515FD8 #D851A2
split-complementary
#D8CA51 #51A2D8 #8651D8
monochromatic
#8F8320 #C1B12B #D8CA51 #E3D983 #EEE8B5

Accessibility & contrast

On white

1.68
#D8CA51 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.49
#D8CA51 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8CA51
12.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8CA51#FFFFFF#000000##000000
##D8CA511.001.6812.4912.49
#FFFFFF1.681.0021.0021.00
#00000012.4921.001.001.00
##00000012.4921.001.001.00

Color blindness preview

Protanopia (red-blind)
#DBC443
Deuteranopia (green-blind)
#E0CA58
Tritanopia (blue-blind)
#E7BDB0
Achromatopsia (no color)
#C7C7C7

Design tokens & code

CSS
--color: #d8ca51;
/* rgb */ color: rgb(216, 202, 81);
/* oklch */ color: oklch(82.8% 0.141 102.7);
Tailwind
colors: {
  custom: {
    50: '#e7d987',
    500: '#d8ca51',
    950: '#000000',
  },
}
SCSS
$custom: #d8ca51;
$custom-light: #e7d987;
$custom-dark: #000000;
JSON
{
  "hex": "#d8ca51",
  "rgb": {
    "r": 216,
    "g": 202,
    "b": 81
  },
  "hsl": {
    "h": 53.778,
    "s": 63.38,
    "l": 58.235
  },
  "oklch": {
    "l": 0.82798,
    "c": 0.14084,
    "h": 102.7
  },
  "luminance": 0.57434
}

Semantic roles & 50–950 ramp

primary
#D8CA51
secondary
#394394
accent
#53E641
background
#FFFEFC
surface
#FEFBF3
border
#D6D4CD
text
#16140C
muted
#85837F

Preview Lab

Preview with #D8CA51

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

Preview Lab → · Contrast checker → · Palette generator →

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