#D4C052#D4C052

#D4C052 is a light, vivid yellow. Relative luminance 0.523; OKLCH L 80.4% C 0.131 H 99.0°. Best body text is #000000 at 11.46:1 contrast (WCAG AA passes).

Color values

HEX#D4C052
RGBrgb(212, 192, 82)
HSLhsl(51, 60%, 58%)
HSVhsv(51, 61%, 83%)
CMYKcmyk(0%, 9.4%, 61.3%, 16.9%)
CIE-LABlab(77.46, -6.01, 56.55)
CIE-LCHlch(77.46, 56.87, 96.06°)
OKLaboklab(80.37% -0.0206 0.1297)
OKLCHoklch(80.37% 0.131 99)
XYZxyz(47.5259, 52.3076, 15.5740)
Luminance0.5231 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D4C052 #5266D4
analogous
#D47F52 #D4C052 #A7D452
triadic
#D4C052 #52D4C0 #C052D4
tetradic
#D4C052 #52D47F #5266D4 #D452A7
square
#D4C052 #52D47F #5266D4 #D452A7
split-complementary
#D4C052 #52A7D4 #7F52D4
monochromatic
#897A22 #BAA52E #D4C052 #E0D283 #ECE4B4

Accessibility & contrast

On white

1.83
#D4C052 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.46
#D4C052 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D4C052
11.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D4C052#FFFFFF#000000##000000
##D4C0521.001.8311.4611.46
#FFFFFF1.831.0021.0021.00
#00000011.4621.001.001.00
##00000011.4621.001.001.00

Color blindness preview

Protanopia (red-blind)
#D1BB46
Deuteranopia (green-blind)
#D7C358
Tritanopia (blue-blind)
#E3B3A8
Achromatopsia (no color)
#BFBFBF

Design tokens & code

CSS
--color: #d4c052;
/* rgb */ color: rgb(212, 192, 82);
/* oklch */ color: oklch(80.4% 0.131 99.0);
Tailwind
colors: {
  custom: {
    50: '#e4d287',
    500: '#d4c052',
    950: '#000000',
  },
}
SCSS
$custom: #d4c052;
$custom-light: #e4d287;
$custom-dark: #000000;
JSON
{
  "hex": "#d4c052",
  "rgb": {
    "r": 212,
    "g": 192,
    "b": 82
  },
  "hsl": {
    "h": 50.769,
    "s": 60.185,
    "l": 57.647
  },
  "oklch": {
    "l": 0.80369,
    "c": 0.13129,
    "h": 99
  },
  "luminance": 0.52306
}

Semantic roles & 50–950 ramp

primary
#D4C052
secondary
#3B4890
accent
#5DE344
background
#FEFEFC
surface
#FDFBF3
border
#D5D4CD
text
#16140C
muted
#84837F

Preview Lab

Preview with #D4C052

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

Preview Lab → · Contrast checker → · Palette generator →

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