#D8CA4B#D8CA4B

#D8CA4B is a very light, vivid yellow. Relative luminance 0.573; OKLCH L 82.7% C 0.145 H 103.0°. Best body text is #000000 at 12.47:1 contrast (WCAG AA passes).

Color values

HEX#D8CA4B
RGBrgb(216, 202, 75)
HSLhsl(54, 64%, 57%)
HSVhsv(54, 65%, 85%)
CMYKcmyk(0%, 6.5%, 65.3%, 15.3%)
CIE-LABlab(80.38, -9.88, 62.75)
CIE-LCHlch(80.38, 63.52, 98.95°)
OKLaboklab(82.74% -0.0327 0.1417)
OKLCHoklch(82.74% 0.145 103)
XYZxyz(50.7115, 57.3500, 15.0537)
Luminance0.5735 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8CA4B #4B59D8
analogous
#D8844B #D8CA4B #9FD84B
triadic
#D8CA4B #4BD8CA #CA4BD8
tetradic
#D8CA4B #4BD884 #4B59D8 #D84B9F
square
#D8CA4B #4BD884 #4B59D8 #D84B9F
split-complementary
#D8CA4B #4B9FD8 #844BD8
monochromatic
#8B801E #BDAE29 #D8CA4B #E3D97D #EEE8B0

Accessibility & contrast

On white

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

On black

12.47
#D8CA4B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8CA4B
12.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8CA4B#FFFFFF#000000##000000
##D8CA4B1.001.6812.4712.47
#FFFFFF1.681.0021.0021.00
#00000012.4721.001.001.00
##00000012.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#DBC43A
Deuteranopia (green-blind)
#E0CA52
Tritanopia (blue-blind)
#E8BDB0
Achromatopsia (no color)
#C7C7C7

Design tokens & code

CSS
--color: #d8ca4b;
/* rgb */ color: rgb(216, 202, 75);
/* oklch */ color: oklch(82.7% 0.145 103.0);
Tailwind
colors: {
  custom: {
    50: '#e7d983',
    500: '#d8ca4b',
    950: '#000000',
  },
}
SCSS
$custom: #d8ca4b;
$custom-light: #e7d983;
$custom-dark: #000000;
JSON
{
  "hex": "#d8ca4b",
  "rgb": {
    "r": 216,
    "g": 202,
    "b": 75
  },
  "hsl": {
    "h": 54.043,
    "s": 64.384,
    "l": 57.059
  },
  "oklch": {
    "l": 0.82744,
    "c": 0.1454,
    "h": 103
  },
  "luminance": 0.57348
}

Semantic roles & 50–950 ramp

primary
#D8CA4B
secondary
#374090
accent
#51E740
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#16140B
muted
#85837E

Preview Lab

Preview with #D8CA4B

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

Preview Lab → · Contrast checker → · Palette generator →

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