#D2C752#D2C752

#D2C752 is a light, vivid yellow. Relative luminance 0.552; OKLCH L 81.7% C 0.138 H 103.9°. Best body text is #000000 at 12.03:1 contrast (WCAG AA passes).

Color values

HEX#D2C752
RGBrgb(210, 199, 82)
HSLhsl(55, 59%, 57%)
HSVhsv(55, 61%, 82%)
CMYKcmyk(0%, 5.2%, 61%, 17.6%)
CIE-LABlab(79.13, -10.43, 58.33)
CIE-LCHlch(79.13, 59.25, 100.14°)
OKLaboklab(81.65% -0.0331 0.1335)
OKLCHoklch(81.65% 0.138 103.9)
XYZxyz(48.5265, 55.1594, 16.0717)
Luminance0.5516 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2C752 #525DD2
analogous
#D28752 #D2C752 #9DD252
triadic
#D2C752 #52D2C7 #C752D2
tetradic
#D2C752 #52D287 #525DD2 #D2529D
square
#D2C752 #52D287 #525DD2 #D2529D
split-complementary
#D2C752 #529DD2 #8752D2
monochromatic
#877E23 #B7AC30 #D2C752 #DFD783 #EBE6B3

Accessibility & contrast

On white

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

On black

12.03
#D2C752 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2C752
12.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2C752#FFFFFF#000000##000000
##D2C7521.001.7512.0312.03
#FFFFFF1.751.0021.0021.00
#00000012.0321.001.001.00
##00000012.0321.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #d2c752;
/* rgb */ color: rgb(210, 199, 82);
/* oklch */ color: oklch(81.7% 0.138 103.9);
Tailwind
colors: {
  custom: {
    50: '#e3d787',
    500: '#d2c752',
    950: '#000000',
  },
}
SCSS
$custom: #d2c752;
$custom-light: #e3d787;
$custom-dark: #000000;
JSON
{
  "hex": "#d2c752",
  "rgb": {
    "r": 210,
    "g": 199,
    "b": 82
  },
  "hsl": {
    "h": 54.844,
    "s": 58.716,
    "l": 57.255
  },
  "oklch": {
    "l": 0.81652,
    "c": 0.13753,
    "h": 103.9
  },
  "luminance": 0.55158
}

Semantic roles & 50–950 ramp

primary
#D2C752
secondary
#3B428D
accent
#53E246
background
#FEFEFC
surface
#FDFBF3
border
#D5D4CD
text
#16140C
muted
#84837F

Preview Lab

Preview with #D2C752

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

Preview Lab → · Contrast checker → · Palette generator →

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