#D4C752#D4C752

#D4C752 is a light, vivid yellow. Relative luminance 0.555; OKLCH L 81.8% C 0.137 H 103.0°. Best body text is #000000 at 12.09:1 contrast (WCAG AA passes).

Color values

HEX#D4C752
RGBrgb(212, 199, 82)
HSLhsl(54, 60%, 58%)
HSVhsv(54, 61%, 83%)
CMYKcmyk(0%, 6.1%, 61.3%, 16.9%)
CIE-LABlab(79.30, -9.60, 58.56)
CIE-LCHlch(79.30, 59.34, 99.31°)
OKLaboklab(81.83% -0.0309 0.1339)
OKLCHoklch(81.83% 0.137 103)
XYZxyz(49.0996, 55.4550, 16.0986)
Luminance0.5545 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D4C752 #525FD4
analogous
#D48652 #D4C752 #A0D452
triadic
#D4C752 #52D4C7 #C752D4
tetradic
#D4C752 #52D486 #525FD4 #D452A0
square
#D4C752 #52D486 #525FD4 #D452A0
split-complementary
#D4C752 #52A0D4 #8652D4
monochromatic
#897F22 #BAAC2E #D4C752 #E0D783 #ECE7B4

Accessibility & contrast

On white

1.74
#D4C752 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.09
#D4C752 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D4C752
12.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D4C752#FFFFFF#000000##000000
##D4C7521.001.7412.0912.09
#FFFFFF1.741.0021.0021.00
#00000012.0921.001.001.00
##00000012.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#D8C145
Deuteranopia (green-blind)
#DCC758
Tritanopia (blue-blind)
#E3BAAE
Achromatopsia (no color)
#C4C4C4

Design tokens & code

CSS
--color: #d4c752;
/* rgb */ color: rgb(212, 199, 82);
/* oklch */ color: oklch(81.8% 0.137 103.0);
Tailwind
colors: {
  custom: {
    50: '#e4d787',
    500: '#d4c752',
    950: '#000000',
  },
}
SCSS
$custom: #d4c752;
$custom-light: #e4d787;
$custom-dark: #000000;
JSON
{
  "hex": "#d4c752",
  "rgb": {
    "r": 212,
    "g": 199,
    "b": 82
  },
  "hsl": {
    "h": 54,
    "s": 60.185,
    "l": 57.647
  },
  "oklch": {
    "l": 0.81828,
    "c": 0.13745,
    "h": 103
  },
  "luminance": 0.55453
}

Semantic roles & 50–950 ramp

primary
#D4C752
secondary
#3B4390
accent
#54E344
background
#FEFEFC
surface
#FDFBF3
border
#D5D4CD
text
#16140C
muted
#84837F

Preview Lab

Preview with #D4C752

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

Preview Lab → · Contrast checker → · Palette generator →

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