#D2C940#D2C940

#D2C940 is a light, vivid yellow. Relative luminance 0.558; OKLCH L 81.9% C 0.153 H 105.6°. Best body text is #000000 at 12.17:1 contrast (WCAG AA passes).

Color values

HEX#D2C940
RGBrgb(210, 201, 64)
HSLhsl(56, 62%, 54%)
HSVhsv(56, 70%, 82%)
CMYKcmyk(0%, 4.3%, 69.5%, 17.6%)
CIE-LABlab(79.53, -12.50, 66.02)
CIE-LCHlch(79.53, 67.19, 100.72°)
OKLaboklab(81.92% -0.0409 0.147)
OKLCHoklch(81.92% 0.153 105.6)
XYZxyz(48.3923, 55.8469, 13.0799)
Luminance0.5585 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2C940 #4049D2
analogous
#D28040 #D2C940 #92D240
triadic
#D2C940 #40D2C9 #C940D2
tetradic
#D2C940 #40D280 #4049D2 #D24092
square
#D2C940 #40D280 #4049D2 #D24092
split-complementary
#D2C940 #4092D2 #8040D2
monochromatic
#7B751D #ACA429 #D2C940 #DED772 #E9E5A3

Accessibility & contrast

On white

1.73
#D2C940 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.17
#D2C940 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2C940
12.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2C940#FFFFFF#000000##000000
##D2C9401.001.7312.1712.17
#FFFFFF1.731.0021.0021.00
#00000012.1721.001.001.00
##00000012.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#DAC22A
Deuteranopia (green-blind)
#DEC849
Tritanopia (blue-blind)
#E1BCAE
Achromatopsia (no color)
#C5C5C5

Design tokens & code

CSS
--color: #d2c940;
/* rgb */ color: rgb(210, 201, 64);
/* oklch */ color: oklch(81.9% 0.153 105.6);
Tailwind
colors: {
  custom: {
    50: '#e3d97d',
    500: '#d2c940',
    950: '#000000',
  },
}
SCSS
$custom: #d2c940;
$custom-light: #e3d97d;
$custom-dark: #000000;
JSON
{
  "hex": "#d2c940",
  "rgb": {
    "r": 210,
    "g": 201,
    "b": 64
  },
  "hsl": {
    "h": 56.301,
    "s": 61.864,
    "l": 53.725
  },
  "oklch": {
    "l": 0.81921,
    "c": 0.15254,
    "h": 105.6
  },
  "luminance": 0.55845
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D2C940

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

Preview Lab → · Contrast checker → · Palette generator →

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