#D2C642#D2C642

#D2C642 is a light, vivid yellow. Relative luminance 0.545; OKLCH L 81.3% C 0.149 H 104.1°. Best body text is #000000 at 11.90:1 contrast (WCAG AA passes).

Color values

HEX#D2C642
RGBrgb(210, 198, 66)
HSLhsl(55, 62%, 54%)
HSVhsv(55, 69%, 82%)
CMYKcmyk(0%, 5.7%, 68.6%, 17.6%)
CIE-LABlab(78.74, -10.88, 64.48)
CIE-LCHlch(78.74, 65.39, 99.57°)
OKLaboklab(81.3% -0.0361 0.144)
OKLCHoklch(81.3% 0.149 104.1)
XYZxyz(47.7577, 54.4850, 13.1542)
Luminance0.5448 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2C642 #424ED2
analogous
#D27E42 #D2C642 #96D242
triadic
#D2C642 #42D2C6 #C642D2
tetradic
#D2C642 #42D27E #424ED2 #D24296
square
#D2C642 #42D27E #424ED2 #D24296
split-complementary
#D2C642 #4296D2 #7E42D2
monochromatic
#7C741E #ADA229 #D2C642 #DED573 #EAE4A5

Accessibility & contrast

On white

1.77
#D2C642 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.90
#D2C642 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2C642
11.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2C642#FFFFFF#000000##000000
##D2C6421.001.7711.9011.90
#FFFFFF1.771.0021.0021.00
#00000011.9021.001.001.00
##00000011.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#D7BF2E
Deuteranopia (green-blind)
#DBC64B
Tritanopia (blue-blind)
#E1B9AC
Achromatopsia (no color)
#C3C3C3

Design tokens & code

CSS
--color: #d2c642;
/* rgb */ color: rgb(210, 198, 66);
/* oklch */ color: oklch(81.3% 0.149 104.1);
Tailwind
colors: {
  custom: {
    50: '#e3d77e',
    500: '#d2c642',
    950: '#000000',
  },
}
SCSS
$custom: #d2c642;
$custom-light: #e3d77e;
$custom-dark: #000000;
JSON
{
  "hex": "#d2c642",
  "rgb": {
    "r": 210,
    "g": 198,
    "b": 66
  },
  "hsl": {
    "h": 55,
    "s": 61.538,
    "l": 54.118
  },
  "oklch": {
    "l": 0.81303,
    "c": 0.14851,
    "h": 104.1
  },
  "luminance": 0.54483
}

Semantic roles & 50–950 ramp

primary
#D2C642
secondary
#343B84
accent
#51E543
background
#FEFEFB
surface
#FDFBF2
border
#D5D4CC
text
#16140A
muted
#84837D

Preview Lab

Preview with #D2C642

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

Preview Lab → · Contrast checker → · Palette generator →

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