#D4C852#D4C852

#D4C852 is a very light, vivid yellow. Relative luminance 0.559; OKLCH L 82.0% C 0.138 H 103.5°. Best body text is #000000 at 12.18:1 contrast (WCAG AA passes).

Color values

HEX#D4C852
RGBrgb(212, 200, 82)
HSLhsl(54, 60%, 58%)
HSVhsv(54, 61%, 83%)
CMYKcmyk(0%, 5.7%, 61.3%, 16.9%)
CIE-LABlab(79.57, -10.11, 58.85)
CIE-LCHlch(79.57, 59.71, 99.75°)
OKLaboklab(82.04% -0.0323 0.1345)
OKLCHoklch(82.04% 0.138 103.5)
XYZxyz(49.3305, 55.9166, 16.1755)
Luminance0.5592 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D4C852 #525ED4
analogous
#D48752 #D4C852 #9FD452
triadic
#D4C852 #52D4C8 #C852D4
tetradic
#D4C852 #52D487 #525ED4 #D4529F
square
#D4C852 #52D487 #525ED4 #D4529F
split-complementary
#D4C852 #529FD4 #8752D4
monochromatic
#898022 #BAAE2E #D4C852 #E0D883 #ECE7B4

Accessibility & contrast

On white

1.72
#D4C852 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.18
#D4C852 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D4C852
12.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D4C852#FFFFFF#000000##000000
##D4C8521.001.7212.1812.18
#FFFFFF1.721.0021.0021.00
#00000012.1821.001.001.00
##00000012.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#D9C244
Deuteranopia (green-blind)
#DDC859
Tritanopia (blue-blind)
#E3BBAF
Achromatopsia (no color)
#C5C5C5

Design tokens & code

CSS
--color: #d4c852;
/* rgb */ color: rgb(212, 200, 82);
/* oklch */ color: oklch(82.0% 0.138 103.5);
Tailwind
colors: {
  custom: {
    50: '#e4d887',
    500: '#d4c852',
    950: '#000000',
  },
}
SCSS
$custom: #d4c852;
$custom-light: #e4d887;
$custom-dark: #000000;
JSON
{
  "hex": "#d4c852",
  "rgb": {
    "r": 212,
    "g": 200,
    "b": 82
  },
  "hsl": {
    "h": 54.462,
    "s": 60.185,
    "l": 57.647
  },
  "oklch": {
    "l": 0.82037,
    "c": 0.13837,
    "h": 103.5
  },
  "luminance": 0.55915
}

Semantic roles & 50–950 ramp

primary
#D4C852
secondary
#3B4290
accent
#53E344
background
#FEFEFC
surface
#FDFBF3
border
#D5D4CD
text
#16140C
muted
#84837F

Preview Lab

Preview with #D4C852

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

Preview Lab → · Contrast checker → · Palette generator →

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