#D2C542#D2C542

#D2C542 is a light, vivid yellow. Relative luminance 0.540; OKLCH L 81.1% C 0.148 H 103.6°. Best body text is #000000 at 11.81:1 contrast (WCAG AA passes).

Color values

HEX#D2C542
RGBrgb(210, 197, 66)
HSLhsl(55, 62%, 54%)
HSVhsv(55, 69%, 82%)
CMYKcmyk(0%, 6.2%, 68.6%, 17.6%)
CIE-LABlab(78.48, -10.37, 64.22)
CIE-LCHlch(78.48, 65.05, 99.17°)
OKLaboklab(81.09% -0.0347 0.1435)
OKLCHoklch(81.09% 0.148 103.6)
XYZxyz(47.5299, 54.0294, 13.0783)
Luminance0.5403 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2C542 #424FD2
analogous
#D27D42 #D2C542 #97D242
triadic
#D2C542 #42D2C5 #C542D2
tetradic
#D2C542 #42D27D #424FD2 #D24297
square
#D2C542 #42D27D #424FD2 #D24297
split-complementary
#D2C542 #4297D2 #7D42D2
monochromatic
#7C741E #ADA229 #D2C542 #DED473 #EAE3A5

Accessibility & contrast

On white

1.78
#D2C542 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.81
#D2C542 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2C542
11.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2C542#FFFFFF#000000##000000
##D2C5421.001.7811.8111.81
#FFFFFF1.781.0021.0021.00
#00000011.8121.001.001.00
##00000011.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#D6BF2F
Deuteranopia (green-blind)
#DBC54A
Tritanopia (blue-blind)
#E1B8AB
Achromatopsia (no color)
#C2C2C2

Design tokens & code

CSS
--color: #d2c542;
/* rgb */ color: rgb(210, 197, 66);
/* oklch */ color: oklch(81.1% 0.148 103.6);
Tailwind
colors: {
  custom: {
    50: '#e3d67e',
    500: '#d2c542',
    950: '#000000',
  },
}
SCSS
$custom: #d2c542;
$custom-light: #e3d67e;
$custom-dark: #000000;
JSON
{
  "hex": "#d2c542",
  "rgb": {
    "r": 210,
    "g": 197,
    "b": 66
  },
  "hsl": {
    "h": 54.583,
    "s": 61.538,
    "l": 54.118
  },
  "oklch": {
    "l": 0.81092,
    "c": 0.14762,
    "h": 103.6
  },
  "luminance": 0.54027
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D2C542

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

Preview Lab → · Contrast checker → · Palette generator →

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