#D2C852#D2C852

#D2C852 is a light, vivid yellow. Relative luminance 0.556; OKLCH L 81.9% C 0.138 H 104.5°. Best body text is #000000 at 12.12:1 contrast (WCAG AA passes).

Color values

HEX#D2C852
RGBrgb(210, 200, 82)
HSLhsl(55, 59%, 57%)
HSVhsv(55, 61%, 82%)
CMYKcmyk(0%, 4.8%, 61%, 17.6%)
CIE-LABlab(79.40, -10.94, 58.61)
CIE-LCHlch(79.40, 59.63, 100.57°)
OKLaboklab(81.86% -0.0346 0.1341)
OKLCHoklch(81.86% 0.138 104.5)
XYZxyz(48.7573, 55.6211, 16.1486)
Luminance0.5562 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2C852 #525CD2
analogous
#D28852 #D2C852 #9CD252
triadic
#D2C852 #52D2C8 #C852D2
tetradic
#D2C852 #52D288 #525CD2 #D2529C
square
#D2C852 #52D288 #525CD2 #D2529C
split-complementary
#D2C852 #529CD2 #8852D2
monochromatic
#877F23 #B7AD30 #D2C852 #DFD783 #EBE7B3

Accessibility & contrast

On white

1.73
#D2C852 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.12
#D2C852 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2C852
12.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2C852#FFFFFF#000000##000000
##D2C8521.001.7312.1212.12
#FFFFFF1.731.0021.0021.00
#00000012.1221.001.001.00
##00000012.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#D8C144
Deuteranopia (green-blind)
#DCC759
Tritanopia (blue-blind)
#E1BBAF
Achromatopsia (no color)
#C5C5C5

Design tokens & code

CSS
--color: #d2c852;
/* rgb */ color: rgb(210, 200, 82);
/* oklch */ color: oklch(81.9% 0.138 104.5);
Tailwind
colors: {
  custom: {
    50: '#e3d887',
    500: '#d2c852',
    950: '#000000',
  },
}
SCSS
$custom: #d2c852;
$custom-light: #e3d887;
$custom-dark: #000000;
JSON
{
  "hex": "#d2c852",
  "rgb": {
    "r": 210,
    "g": 200,
    "b": 82
  },
  "hsl": {
    "h": 55.313,
    "s": 58.716,
    "l": 57.255
  },
  "oklch": {
    "l": 0.81863,
    "c": 0.13848,
    "h": 104.5
  },
  "luminance": 0.55619
}

Semantic roles & 50–950 ramp

primary
#D2C852
secondary
#3B418D
accent
#52E246
background
#FEFEFC
surface
#FDFBF3
border
#D5D4CD
text
#16140C
muted
#84837F

Preview Lab

Preview with #D2C852

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

Preview Lab → · Contrast checker → · Palette generator →

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