#D4C848#D4C848

#D4C848 is a light, vivid yellow. Relative luminance 0.558; OKLCH L 81.9% C 0.146 H 103.9°. Best body text is #000000 at 12.15:1 contrast (WCAG AA passes).

Color values

HEX#D4C848
RGBrgb(212, 200, 72)
HSLhsl(55, 62%, 56%)
HSVhsv(55, 66%, 83%)
CMYKcmyk(0%, 5.7%, 66%, 16.9%)
CIE-LABlab(79.49, -10.72, 62.93)
CIE-LCHlch(79.49, 63.84, 99.67°)
OKLaboklab(81.95% -0.0352 0.1417)
OKLCHoklch(81.95% 0.146 103.9)
XYZxyz(48.9773, 55.7754, 14.3155)
Luminance0.5577 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D4C848 #4854D4
analogous
#D48248 #D4C848 #9AD448
triadic
#D4C848 #48D4C8 #C848D4
tetradic
#D4C848 #48D482 #4854D4 #D4489A
square
#D4C848 #48D482 #4854D4 #D4489A
split-complementary
#D4C848 #489AD4 #8248D4
monochromatic
#837A1F #B4A92A #D4C848 #E0D77A #EBE6AB

Accessibility & contrast

On white

1.73
#D4C848 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.15
#D4C848 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D4C848
12.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D4C848#FFFFFF#000000##000000
##D4C8481.001.7312.1512.15
#FFFFFF1.731.0021.0021.00
#00000012.1521.001.001.00
##00000012.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#D9C137
Deuteranopia (green-blind)
#DDC850
Tritanopia (blue-blind)
#E3BBAE
Achromatopsia (no color)
#C5C5C5

Design tokens & code

CSS
--color: #d4c848;
/* rgb */ color: rgb(212, 200, 72);
/* oklch */ color: oklch(81.9% 0.146 103.9);
Tailwind
colors: {
  custom: {
    50: '#e5d882',
    500: '#d4c848',
    950: '#000000',
  },
}
SCSS
$custom: #d4c848;
$custom-light: #e5d882;
$custom-dark: #000000;
JSON
{
  "hex": "#d4c848",
  "rgb": {
    "r": 212,
    "g": 200,
    "b": 72
  },
  "hsl": {
    "h": 54.857,
    "s": 61.947,
    "l": 55.686
  },
  "oklch": {
    "l": 0.81947,
    "c": 0.146,
    "h": 103.9
  },
  "luminance": 0.55773
}

Semantic roles & 50–950 ramp

primary
#D4C848
secondary
#363E8A
accent
#51E543
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#16140B
muted
#85837E

Preview Lab

Preview with #D4C848

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

Preview Lab → · Contrast checker → · Palette generator →

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