#D8C048#D8C048

#D8C048 is a light, vivid yellow. Relative luminance 0.528; OKLCH L 80.6% C 0.139 H 97.8°. Best body text is #000000 at 11.55:1 contrast (WCAG AA passes).

Color values

HEX#D8C048
RGBrgb(216, 192, 72)
HSLhsl(50, 65%, 56%)
HSVhsv(50, 67%, 85%)
CMYKcmyk(0%, 11.1%, 66.7%, 15.3%)
CIE-LABlab(77.74, -4.93, 61.23)
CIE-LCHlch(77.74, 61.43, 94.61°)
OKLaboklab(80.64% -0.019 0.138)
OKLCHoklch(80.64% 0.139 97.8)
XYZxyz(48.3404, 52.7684, 13.7687)
Luminance0.5277 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8C048 #4860D8
analogous
#D87848 #D8C048 #A8D848
triadic
#D8C048 #48D8C0 #C048D8
tetradic
#D8C048 #48D878 #4860D8 #D848A8
square
#D8C048 #48D878 #4860D8 #D848A8
split-complementary
#D8C048 #48A8D8 #7848D8
monochromatic
#89771D #BBA228 #D8C048 #E3D17A #EEE3AD

Accessibility & contrast

On white

1.82
#D8C048 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.55
#D8C048 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8C048
11.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8C048#FFFFFF#000000##000000
##D8C0481.001.8211.5511.55
#FFFFFF1.821.0021.0021.00
#00000011.5521.001.001.00
##00000011.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#D2BB38
Deuteranopia (green-blind)
#D9C44F
Tritanopia (blue-blind)
#E8B2A7
Achromatopsia (no color)
#C0C0C0

Design tokens & code

CSS
--color: #d8c048;
/* rgb */ color: rgb(216, 192, 72);
/* oklch */ color: oklch(80.6% 0.139 97.8);
Tailwind
colors: {
  custom: {
    50: '#e8d281',
    500: '#d8c048',
    950: '#000000',
  },
}
SCSS
$custom: #d8c048;
$custom-light: #e8d281;
$custom-dark: #000000;
JSON
{
  "hex": "#d8c048",
  "rgb": {
    "r": 216,
    "g": 192,
    "b": 72
  },
  "hsl": {
    "h": 50,
    "s": 64.865,
    "l": 56.471
  },
  "oklch": {
    "l": 0.80643,
    "c": 0.13928,
    "h": 97.8
  },
  "luminance": 0.52766
}

Semantic roles & 50–950 ramp

primary
#D8C048
secondary
#36448F
accent
#5CE840
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#16140B
muted
#85837E

Preview Lab

Preview with #D8C048

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

Preview Lab → · Contrast checker → · Palette generator →

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