#D2C252#D2C252

#D2C252 is a light, vivid yellow. Relative luminance 0.529; OKLCH L 80.6% C 0.133 H 101.2°. Best body text is #000000 at 11.58:1 contrast (WCAG AA passes).

Color values

HEX#D2C252
RGBrgb(210, 194, 82)
HSLhsl(53, 59%, 57%)
HSVhsv(53, 61%, 82%)
CMYKcmyk(0%, 7.6%, 61%, 17.6%)
CIE-LABlab(77.81, -7.88, 56.88)
CIE-LCHlch(77.81, 57.43, 97.88°)
OKLaboklab(80.6% -0.0259 0.1304)
OKLCHoklch(80.6% 0.133 101.2)
XYZxyz(47.3949, 52.8963, 15.6945)
Luminance0.5289 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2C252 #5262D2
analogous
#D28252 #D2C252 #A2D252
triadic
#D2C252 #52D2C2 #C252D2
tetradic
#D2C252 #52D282 #5262D2 #D252A2
square
#D2C252 #52D282 #5262D2 #D252A2
split-complementary
#D2C252 #52A2D2 #8252D2
monochromatic
#877A23 #B7A630 #D2C252 #DFD383 #EBE4B3

Accessibility & contrast

On white

1.81
#D2C252 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.58
#D2C252 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2C252
11.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2C252#FFFFFF#000000##000000
##D2C2521.001.8111.5811.58
#FFFFFF1.811.0021.0021.00
#00000011.5821.001.001.00
##00000011.5821.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #d2c252;
/* rgb */ color: rgb(210, 194, 82);
/* oklch */ color: oklch(80.6% 0.133 101.2);
Tailwind
colors: {
  custom: {
    50: '#e3d487',
    500: '#d2c252',
    950: '#000000',
  },
}
SCSS
$custom: #d2c252;
$custom-light: #e3d487;
$custom-dark: #000000;
JSON
{
  "hex": "#d2c252",
  "rgb": {
    "r": 210,
    "g": 194,
    "b": 82
  },
  "hsl": {
    "h": 52.5,
    "s": 58.716,
    "l": 57.255
  },
  "oklch": {
    "l": 0.80604,
    "c": 0.13296,
    "h": 101.2
  },
  "luminance": 0.52894
}

Semantic roles & 50–950 ramp

primary
#D2C252
secondary
#3B458D
accent
#59E246
background
#FEFEFC
surface
#FDFBF3
border
#D5D4CD
text
#16140C
muted
#84837F

Preview Lab

Preview with #D2C252

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

Preview Lab → · Contrast checker → · Palette generator →

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