#D2C841#D2C841

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

Color values

HEX#D2C841
RGBrgb(210, 200, 65)
HSLhsl(56, 62%, 54%)
HSVhsv(56, 69%, 82%)
CMYKcmyk(0%, 4.8%, 69%, 17.6%)
CIE-LABlab(79.27, -11.94, 65.39)
CIE-LCHlch(79.27, 66.47, 100.35°)
OKLaboklab(81.72% -0.0393 0.1458)
OKLCHoklch(81.72% 0.151 105.1)
XYZxyz(48.1887, 55.3937, 13.1537)
Luminance0.5539 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2C841 #414BD2
analogous
#D28041 #D2C841 #94D241
triadic
#D2C841 #41D2C8 #C841D2
tetradic
#D2C841 #41D280 #414BD2 #D24194
square
#D2C841 #41D280 #414BD2 #D24194
split-complementary
#D2C841 #4194D2 #8041D2
monochromatic
#7B751D #ADA429 #D2C841 #DED672 #E9E5A4

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##D2C841#FFFFFF#000000##000000
##D2C8411.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)
#D9C12C
Deuteranopia (green-blind)
#DDC74A
Tritanopia (blue-blind)
#E1BBAD
Achromatopsia (no color)
#C4C4C4

Design tokens & code

CSS
--color: #d2c841;
/* rgb */ color: rgb(210, 200, 65);
/* oklch */ color: oklch(81.7% 0.151 105.1);
Tailwind
colors: {
  custom: {
    50: '#e3d87e',
    500: '#d2c841',
    950: '#000000',
  },
}
SCSS
$custom: #d2c841;
$custom-light: #e3d87e;
$custom-dark: #000000;
JSON
{
  "hex": "#d2c841",
  "rgb": {
    "r": 210,
    "g": 200,
    "b": 65
  },
  "hsl": {
    "h": 55.862,
    "s": 61.702,
    "l": 53.922
  },
  "oklch": {
    "l": 0.81717,
    "c": 0.15097,
    "h": 105.1
  },
  "luminance": 0.55392
}

Semantic roles & 50–950 ramp

primary
#D2C841
secondary
#343983
accent
#4EE543
background
#FEFEFB
surface
#FDFBF2
border
#D5D4CC
text
#16140A
muted
#84837D

Preview Lab

Preview with #D2C841

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

Preview Lab → · Contrast checker → · Palette generator →

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