#D2C452#D2C452

#D2C452 is a light, vivid yellow. Relative luminance 0.538; OKLCH L 81.0% C 0.135 H 102.3°. Best body text is #000000 at 11.76:1 contrast (WCAG AA passes).

Color values

HEX#D2C452
RGBrgb(210, 196, 82)
HSLhsl(53, 59%, 57%)
HSVhsv(53, 61%, 82%)
CMYKcmyk(0%, 6.7%, 61%, 17.6%)
CIE-LABlab(78.34, -8.90, 57.46)
CIE-LCHlch(78.34, 58.15, 98.81°)
OKLaboklab(81.02% -0.0288 0.1317)
OKLCHoklch(81.02% 0.135 102.3)
XYZxyz(47.8430, 53.7925, 15.8439)
Luminance0.5379 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2C452 #5260D2
analogous
#D28452 #D2C452 #A0D252
triadic
#D2C452 #52D2C4 #C452D2
tetradic
#D2C452 #52D284 #5260D2 #D252A0
square
#D2C452 #52D284 #5260D2 #D252A0
split-complementary
#D2C452 #52A0D2 #8452D2
monochromatic
#877C23 #B7A830 #D2C452 #DFD583 #EBE5B3

Accessibility & contrast

On white

1.79
#D2C452 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.76
#D2C452 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2C452
11.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2C452#FFFFFF#000000##000000
##D2C4521.001.7911.7611.76
#FFFFFF1.791.0021.0021.00
#00000011.7621.001.001.00
##00000011.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#D5BE45
Deuteranopia (green-blind)
#D9C558
Tritanopia (blue-blind)
#E1B7AC
Achromatopsia (no color)
#C2C2C2

Design tokens & code

CSS
--color: #d2c452;
/* rgb */ color: rgb(210, 196, 82);
/* oklch */ color: oklch(81.0% 0.135 102.3);
Tailwind
colors: {
  custom: {
    50: '#e3d587',
    500: '#d2c452',
    950: '#000000',
  },
}
SCSS
$custom: #d2c452;
$custom-light: #e3d587;
$custom-dark: #000000;
JSON
{
  "hex": "#d2c452",
  "rgb": {
    "r": 210,
    "g": 196,
    "b": 82
  },
  "hsl": {
    "h": 53.438,
    "s": 58.716,
    "l": 57.255
  },
  "oklch": {
    "l": 0.81022,
    "c": 0.13476,
    "h": 102.3
  },
  "luminance": 0.53791
}

Semantic roles & 50–950 ramp

primary
#D2C452
secondary
#3B448D
accent
#57E246
background
#FEFEFC
surface
#FDFBF3
border
#D5D4CD
text
#16140C
muted
#84837F

Preview Lab

Preview with #D2C452

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

Preview Lab → · Contrast checker → · Palette generator →

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