#D2C342#D2C342

#D2C342 is a light, vivid yellow. Relative luminance 0.531; OKLCH L 80.7% C 0.146 H 102.6°. Best body text is #000000 at 11.63:1 contrast (WCAG AA passes).

Color values

HEX#D2C342
RGBrgb(210, 195, 66)
HSLhsl(54, 62%, 54%)
HSVhsv(54, 69%, 82%)
CMYKcmyk(0%, 7.1%, 68.6%, 17.6%)
CIE-LABlab(77.95, -9.35, 63.68)
CIE-LCHlch(77.95, 64.37, 98.35°)
OKLaboklab(80.67% -0.0318 0.1424)
OKLCHoklch(80.67% 0.146 102.6)
XYZxyz(47.0788, 53.1272, 12.9279)
Luminance0.5313 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2C342 #4251D2
analogous
#D27B42 #D2C342 #99D242
triadic
#D2C342 #42D2C3 #C342D2
tetradic
#D2C342 #42D27B #4251D2 #D24299
square
#D2C342 #42D27B #4251D2 #D24299
split-complementary
#D2C342 #4299D2 #7B42D2
monochromatic
#7C721E #ADA029 #D2C342 #DED373 #EAE2A5

Accessibility & contrast

On white

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

On black

11.63
#D2C342 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2C342
11.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2C342#FFFFFF#000000##000000
##D2C3421.001.8111.6311.63
#FFFFFF1.811.0021.0021.00
#00000011.6321.001.001.00
##00000011.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#D4BD2F
Deuteranopia (green-blind)
#D9C44A
Tritanopia (blue-blind)
#E2B6A9
Achromatopsia (no color)
#C1C1C1

Design tokens & code

CSS
--color: #d2c342;
/* rgb */ color: rgb(210, 195, 66);
/* oklch */ color: oklch(80.7% 0.146 102.6);
Tailwind
colors: {
  custom: {
    50: '#e3d47e',
    500: '#d2c342',
    950: '#000000',
  },
}
SCSS
$custom: #d2c342;
$custom-light: #e3d47e;
$custom-dark: #000000;
JSON
{
  "hex": "#d2c342",
  "rgb": {
    "r": 210,
    "g": 195,
    "b": 66
  },
  "hsl": {
    "h": 53.75,
    "s": 61.538,
    "l": 54.118
  },
  "oklch": {
    "l": 0.80672,
    "c": 0.14587,
    "h": 102.6
  },
  "luminance": 0.53125
}

Semantic roles & 50–950 ramp

primary
#D2C342
secondary
#343D84
accent
#54E543
background
#FEFEFB
surface
#FDFBF2
border
#D5D4CC
text
#16140A
muted
#84837D

Preview Lab

Preview with #D2C342

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

Preview Lab → · Contrast checker → · Palette generator →

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