#D2C052#D2C052

#D2C052 is a light, vivid yellow. Relative luminance 0.520; OKLCH L 80.2% C 0.131 H 100.1°. Best body text is #000000 at 11.40:1 contrast (WCAG AA passes).

Color values

HEX#D2C052
RGBrgb(210, 192, 82)
HSLhsl(52, 59%, 57%)
HSVhsv(52, 61%, 82%)
CMYKcmyk(0%, 8.6%, 61%, 17.6%)
CIE-LABlab(77.29, -6.85, 56.31)
CIE-LCHlch(77.29, 56.72, 96.93°)
OKLaboklab(80.19% -0.0229 0.1292)
OKLCHoklch(80.19% 0.131 100.1)
XYZxyz(46.9528, 52.0121, 15.5471)
Luminance0.5201 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2C052 #5264D2
analogous
#D28052 #D2C052 #A4D252
triadic
#D2C052 #52D2C0 #C052D2
tetradic
#D2C052 #52D280 #5264D2 #D252A4
square
#D2C052 #52D280 #5264D2 #D252A4
split-complementary
#D2C052 #52A4D2 #8052D2
monochromatic
#877923 #B7A430 #D2C052 #DFD283 #EBE3B3

Accessibility & contrast

On white

1.84
#D2C052 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.40
#D2C052 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2C052
11.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2C052#FFFFFF#000000##000000
##D2C0521.001.8411.4011.40
#FFFFFF1.841.0021.0021.00
#00000011.4021.001.001.00
##00000011.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#D1BB46
Deuteranopia (green-blind)
#D6C258
Tritanopia (blue-blind)
#E1B3A8
Achromatopsia (no color)
#BFBFBF

Design tokens & code

CSS
--color: #d2c052;
/* rgb */ color: rgb(210, 192, 82);
/* oklch */ color: oklch(80.2% 0.131 100.1);
Tailwind
colors: {
  custom: {
    50: '#e3d287',
    500: '#d2c052',
    950: '#000000',
  },
}
SCSS
$custom: #d2c052;
$custom-light: #e3d287;
$custom-dark: #000000;
JSON
{
  "hex": "#d2c052",
  "rgb": {
    "r": 210,
    "g": 192,
    "b": 82
  },
  "hsl": {
    "h": 51.563,
    "s": 58.716,
    "l": 57.255
  },
  "oklch": {
    "l": 0.80187,
    "c": 0.13121,
    "h": 100.1
  },
  "luminance": 0.5201
}

Semantic roles & 50–950 ramp

primary
#D2C052
secondary
#3B478D
accent
#5CE246
background
#FEFEFC
surface
#FDFBF3
border
#D5D4CD
text
#16140B
muted
#84837E

Preview Lab

Preview with #D2C052

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

Preview Lab → · Contrast checker → · Palette generator →

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