#D2C842#D2C842

#D2C842 is a light, vivid yellow. Relative luminance 0.554; OKLCH L 81.7% C 0.150 H 105.0°. Best body text is #000000 at 12.08:1 contrast (WCAG AA passes).

Color values

HEX#D2C842
RGBrgb(210, 200, 66)
HSLhsl(56, 62%, 54%)
HSVhsv(56, 69%, 82%)
CMYKcmyk(0%, 4.8%, 68.6%, 17.6%)
CIE-LABlab(79.27, -11.89, 65.01)
CIE-LCHlch(79.27, 66.09, 100.36°)
OKLaboklab(81.73% -0.039 0.1452)
OKLCHoklch(81.73% 0.15 105)
XYZxyz(48.2179, 55.4053, 13.3076)
Luminance0.5540 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2C842 #424CD2
analogous
#D28042 #D2C842 #94D242
triadic
#D2C842 #42D2C8 #C842D2
tetradic
#D2C842 #42D280 #424CD2 #D24294
square
#D2C842 #42D280 #424CD2 #D24294
split-complementary
#D2C842 #4294D2 #8042D2
monochromatic
#7C751E #ADA429 #D2C842 #DED673 #EAE5A5

Accessibility & contrast

On white

1.74
#D2C842 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.08
#D2C842 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2C842
12.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2C842#FFFFFF#000000##000000
##D2C8421.001.7412.0812.08
#FFFFFF1.741.0021.0021.00
#00000012.0821.001.001.00
##00000012.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#D9C12E
Deuteranopia (green-blind)
#DDC74B
Tritanopia (blue-blind)
#E1BBAD
Achromatopsia (no color)
#C4C4C4

Design tokens & code

CSS
--color: #d2c842;
/* rgb */ color: rgb(210, 200, 66);
/* oklch */ color: oklch(81.7% 0.150 105.0);
Tailwind
colors: {
  custom: {
    50: '#e3d87e',
    500: '#d2c842',
    950: '#000000',
  },
}
SCSS
$custom: #d2c842;
$custom-light: #e3d87e;
$custom-dark: #000000;
JSON
{
  "hex": "#d2c842",
  "rgb": {
    "r": 210,
    "g": 200,
    "b": 66
  },
  "hsl": {
    "h": 55.833,
    "s": 61.538,
    "l": 54.118
  },
  "oklch": {
    "l": 0.81725,
    "c": 0.15032,
    "h": 105
  },
  "luminance": 0.55404
}

Semantic roles & 50–950 ramp

primary
#D2C842
secondary
#343A84
accent
#4EE543
background
#FEFEFB
surface
#FDFBF2
border
#D5D4CC
text
#16140A
muted
#84837D

Preview Lab

Preview with #D2C842

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

Preview Lab → · Contrast checker → · Palette generator →

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