#D2C939#D2C939

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

Color values

HEX#D2C939
RGBrgb(210, 201, 57)
HSLhsl(56, 63%, 52%)
HSVhsv(56, 73%, 82%)
CMYKcmyk(0%, 4.3%, 72.9%, 17.6%)
CIE-LABlab(79.48, -12.83, 68.48)
CIE-LCHlch(79.48, 69.67, 100.61°)
OKLaboklab(81.87% -0.0425 0.1509)
OKLCHoklch(81.87% 0.157 105.7)
XYZxyz(48.2055, 55.7721, 12.0960)
Luminance0.5577 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2C939 #3942D2
analogous
#D27D39 #D2C939 #8ED239
triadic
#D2C939 #39D2C9 #C939D2
tetradic
#D2C939 #39D27D #3942D2 #D2398E
square
#D2C939 #39D27D #3942D2 #D2398E
split-complementary
#D2C939 #398ED2 #7D39D2
monochromatic
#76701B #A8A026 #D2C939 #DDD76B #E9E49D

Accessibility & contrast

On white

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

On black

12.15
#D2C939 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2C939
12.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2C939#FFFFFF#000000##000000
##D2C9391.001.7312.1512.15
#FFFFFF1.731.0021.0021.00
#00000012.1521.001.001.00
##00000012.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#DAC21D
Deuteranopia (green-blind)
#DEC844
Tritanopia (blue-blind)
#E2BBAD
Achromatopsia (no color)
#C5C5C5

Design tokens & code

CSS
--color: #d2c939;
/* rgb */ color: rgb(210, 201, 57);
/* oklch */ color: oklch(81.9% 0.157 105.7);
Tailwind
colors: {
  custom: {
    50: '#e4d97a',
    500: '#d2c939',
    950: '#000000',
  },
}
SCSS
$custom: #d2c939;
$custom-light: #e4d97a;
$custom-dark: #000000;
JSON
{
  "hex": "#d2c939",
  "rgb": {
    "r": 210,
    "g": 201,
    "b": 57
  },
  "hsl": {
    "h": 56.471,
    "s": 62.963,
    "l": 52.353
  },
  "oklch": {
    "l": 0.81874,
    "c": 0.15681,
    "h": 105.7
  },
  "luminance": 0.5577
}

Semantic roles & 50–950 ramp

primary
#D2C939
secondary
#31367E
accent
#4BE642
background
#FFFEFB
surface
#FEFBF2
border
#D6D4CC
text
#16140A
muted
#85837D

Preview Lab

Preview with #D2C939

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

Preview Lab → · Contrast checker → · Palette generator →

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