#D2C442#D2C442

#D2C442 is a light, vivid yellow. Relative luminance 0.536; OKLCH L 80.9% C 0.147 H 103.1°. Best body text is #000000 at 11.72:1 contrast (WCAG AA passes).

Color values

HEX#D2C442
RGBrgb(210, 196, 66)
HSLhsl(54, 62%, 54%)
HSVhsv(54, 69%, 82%)
CMYKcmyk(0%, 6.7%, 68.6%, 17.6%)
CIE-LABlab(78.21, -9.86, 63.95)
CIE-LCHlch(78.21, 64.70, 98.76°)
OKLaboklab(80.88% -0.0333 0.1429)
OKLCHoklch(80.88% 0.147 103.1)
XYZxyz(47.3036, 53.5768, 13.0028)
Luminance0.5357 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2C442 #4250D2
analogous
#D27C42 #D2C442 #98D242
triadic
#D2C442 #42D2C4 #C442D2
tetradic
#D2C442 #42D27C #4250D2 #D24298
square
#D2C442 #42D27C #4250D2 #D24298
split-complementary
#D2C442 #4298D2 #7C42D2
monochromatic
#7C731E #ADA129 #D2C442 #DED373 #EAE3A5

Accessibility & contrast

On white

1.79
#D2C442 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.72
#D2C442 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2C442
11.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2C442#FFFFFF#000000##000000
##D2C4421.001.7911.7211.72
#FFFFFF1.791.0021.0021.00
#00000011.7221.001.001.00
##00000011.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#D5BE2F
Deuteranopia (green-blind)
#DAC44A
Tritanopia (blue-blind)
#E2B7AA
Achromatopsia (no color)
#C1C1C1

Design tokens & code

CSS
--color: #d2c442;
/* rgb */ color: rgb(210, 196, 66);
/* oklch */ color: oklch(80.9% 0.147 103.1);
Tailwind
colors: {
  custom: {
    50: '#e3d57e',
    500: '#d2c442',
    950: '#000000',
  },
}
SCSS
$custom: #d2c442;
$custom-light: #e3d57e;
$custom-dark: #000000;
JSON
{
  "hex": "#d2c442",
  "rgb": {
    "r": 210,
    "g": 196,
    "b": 66
  },
  "hsl": {
    "h": 54.167,
    "s": 61.538,
    "l": 54.118
  },
  "oklch": {
    "l": 0.80882,
    "c": 0.14674,
    "h": 103.1
  },
  "luminance": 0.53575
}

Semantic roles & 50–950 ramp

primary
#D2C442
secondary
#343C84
accent
#53E543
background
#FEFEFB
surface
#FDFBF2
border
#D5D4CC
text
#16140A
muted
#84837D

Preview Lab

Preview with #D2C442

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

Preview Lab → · Contrast checker → · Palette generator →

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