#D4C048#D4C048

#D4C048 is a light, vivid yellow. Relative luminance 0.522; OKLCH L 80.3% C 0.139 H 99.7°. Best body text is #000000 at 11.43:1 contrast (WCAG AA passes).

Color values

HEX#D4C048
RGBrgb(212, 192, 72)
HSLhsl(51, 62%, 56%)
HSVhsv(51, 66%, 83%)
CMYKcmyk(0%, 9.4%, 66%, 16.9%)
CIE-LABlab(77.38, -6.63, 60.75)
CIE-LCHlch(77.38, 61.11, 96.23°)
OKLaboklab(80.27% -0.0236 0.1371)
OKLCHoklch(80.27% 0.139 99.7)
XYZxyz(47.1728, 52.1663, 13.7140)
Luminance0.5216 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D4C048 #485CD4
analogous
#D47A48 #D4C048 #A2D448
triadic
#D4C048 #48D4C0 #C048D4
tetradic
#D4C048 #48D47A #485CD4 #D448A2
square
#D4C048 #48D47A #485CD4 #D448A2
split-complementary
#D4C048 #48A2D4 #7A48D4
monochromatic
#83751F #B4A12A #D4C048 #E0D17A #EBE2AB

Accessibility & contrast

On white

1.84
#D4C048 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.43
#D4C048 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D4C048
11.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D4C048#FFFFFF#000000##000000
##D4C0481.001.8411.4311.43
#FFFFFF1.841.0021.0021.00
#00000011.4321.001.001.00
##00000011.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#D2BB39
Deuteranopia (green-blind)
#D7C24F
Tritanopia (blue-blind)
#E4B3A7
Achromatopsia (no color)
#BFBFBF

Design tokens & code

CSS
--color: #d4c048;
/* rgb */ color: rgb(212, 192, 72);
/* oklch */ color: oklch(80.3% 0.139 99.7);
Tailwind
colors: {
  custom: {
    50: '#e5d281',
    500: '#d4c048',
    950: '#000000',
  },
}
SCSS
$custom: #d4c048;
$custom-light: #e5d281;
$custom-dark: #000000;
JSON
{
  "hex": "#d4c048",
  "rgb": {
    "r": 212,
    "g": 192,
    "b": 72
  },
  "hsl": {
    "h": 51.429,
    "s": 61.947,
    "l": 55.686
  },
  "oklch": {
    "l": 0.80275,
    "c": 0.13909,
    "h": 99.7
  },
  "luminance": 0.52164
}

Semantic roles & 50–950 ramp

primary
#D4C048
secondary
#36428A
accent
#5AE543
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#16140B
muted
#85837E

Preview Lab

Preview with #D4C048

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

Preview Lab → · Contrast checker → · Palette generator →

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