#D2C152#D2C152

#D2C152 is a light, vivid yellow. Relative luminance 0.525; OKLCH L 80.4% C 0.132 H 100.6°. Best body text is #000000 at 11.49:1 contrast (WCAG AA passes).

Color values

HEX#D2C152
RGBrgb(210, 193, 82)
HSLhsl(52, 59%, 57%)
HSVhsv(52, 61%, 82%)
CMYKcmyk(0%, 8.1%, 61%, 17.6%)
CIE-LABlab(77.55, -7.36, 56.60)
CIE-LCHlch(77.55, 57.07, 97.41°)
OKLaboklab(80.4% -0.0244 0.1298)
OKLCHoklch(80.4% 0.132 100.6)
XYZxyz(47.1731, 52.4527, 15.6206)
Luminance0.5245 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2C152 #5263D2
analogous
#D28152 #D2C152 #A3D252
triadic
#D2C152 #52D2C1 #C152D2
tetradic
#D2C152 #52D281 #5263D2 #D252A3
square
#D2C152 #52D281 #5263D2 #D252A3
split-complementary
#D2C152 #52A3D2 #8152D2
monochromatic
#877923 #B7A530 #D2C152 #DFD283 #EBE4B3

Accessibility & contrast

On white

1.83
#D2C152 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.49
#D2C152 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2C152
11.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2C152#FFFFFF#000000##000000
##D2C1521.001.8311.4911.49
#FFFFFF1.831.0021.0021.00
#00000011.4921.001.001.00
##00000011.4921.001.001.00

Color blindness preview

Protanopia (red-blind)
#D2BC46
Deuteranopia (green-blind)
#D7C358
Tritanopia (blue-blind)
#E1B4A9
Achromatopsia (no color)
#C0C0C0

Design tokens & code

CSS
--color: #d2c152;
/* rgb */ color: rgb(210, 193, 82);
/* oklch */ color: oklch(80.4% 0.132 100.6);
Tailwind
colors: {
  custom: {
    50: '#e3d387',
    500: '#d2c152',
    950: '#000000',
  },
}
SCSS
$custom: #d2c152;
$custom-light: #e3d387;
$custom-dark: #000000;
JSON
{
  "hex": "#d2c152",
  "rgb": {
    "r": 210,
    "g": 193,
    "b": 82
  },
  "hsl": {
    "h": 52.031,
    "s": 58.716,
    "l": 57.255
  },
  "oklch": {
    "l": 0.80396,
    "c": 0.13208,
    "h": 100.6
  },
  "luminance": 0.52451
}

Semantic roles & 50–950 ramp

primary
#D2C152
secondary
#3B468D
accent
#5BE246
background
#FEFEFC
surface
#FDFBF3
border
#D5D4CD
text
#16140C
muted
#84837F

Preview Lab

Preview with #D2C152

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

Preview Lab → · Contrast checker → · Palette generator →

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