#D4C652#D4C652

#D4C652 is a light, vivid yellow. Relative luminance 0.550; OKLCH L 81.6% C 0.137 H 102.4°. Best body text is #000000 at 12.00:1 contrast (WCAG AA passes).

Color values

HEX#D4C652
RGBrgb(212, 198, 82)
HSLhsl(54, 60%, 58%)
HSVhsv(54, 61%, 83%)
CMYKcmyk(0%, 6.6%, 61.3%, 16.9%)
CIE-LABlab(79.04, -9.09, 58.27)
CIE-LCHlch(79.04, 58.98, 98.86°)
OKLaboklab(81.62% -0.0294 0.1333)
OKLCHoklch(81.62% 0.137 102.4)
XYZxyz(48.8703, 54.9963, 16.0221)
Luminance0.5499 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D4C652 #5260D4
analogous
#D48552 #D4C652 #A1D452
triadic
#D4C652 #52D4C6 #C652D4
tetradic
#D4C652 #52D485 #5260D4 #D452A1
square
#D4C652 #52D485 #5260D4 #D452A1
split-complementary
#D4C652 #52A1D4 #8552D4
monochromatic
#897E22 #BAAB2E #D4C652 #E0D683 #ECE6B4

Accessibility & contrast

On white

1.75
#D4C652 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.00
#D4C652 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D4C652
12.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D4C652#FFFFFF#000000##000000
##D4C6521.001.7512.0012.00
#FFFFFF1.751.0021.0021.00
#00000012.0021.001.001.00
##00000012.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#D7C045
Deuteranopia (green-blind)
#DBC758
Tritanopia (blue-blind)
#E3B9AD
Achromatopsia (no color)
#C4C4C4

Design tokens & code

CSS
--color: #d4c652;
/* rgb */ color: rgb(212, 198, 82);
/* oklch */ color: oklch(81.6% 0.137 102.4);
Tailwind
colors: {
  custom: {
    50: '#e4d787',
    500: '#d4c652',
    950: '#000000',
  },
}
SCSS
$custom: #d4c652;
$custom-light: #e4d787;
$custom-dark: #000000;
JSON
{
  "hex": "#d4c652",
  "rgb": {
    "r": 212,
    "g": 198,
    "b": 82
  },
  "hsl": {
    "h": 53.538,
    "s": 60.185,
    "l": 57.647
  },
  "oklch": {
    "l": 0.81618,
    "c": 0.13653,
    "h": 102.4
  },
  "luminance": 0.54994
}

Semantic roles & 50–950 ramp

primary
#D4C652
secondary
#3B4490
accent
#56E344
background
#FEFEFC
surface
#FDFBF3
border
#D5D4CD
text
#16140C
muted
#84837F

Preview Lab

Preview with #D4C652

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

Preview Lab → · Contrast checker → · Palette generator →

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