#D2D031#D2D031

#D2D031 is a very light, vivid yellow. Relative luminance 0.590; OKLCH L 83.3% C 0.167 H 108.8°. Best body text is #000000 at 12.81:1 contrast (WCAG AA passes).

Color values

HEX#D2D031
RGBrgb(210, 208, 49)
HSLhsl(59, 64%, 51%)
HSVhsv(59, 77%, 82%)
CMYKcmyk(0%, 1%, 76.7%, 17.6%)
CIE-LABlab(81.31, -16.65, 72.74)
CIE-LCHlch(81.31, 74.62, 102.90°)
OKLaboklab(83.32% -0.0539 0.1585)
OKLCHoklch(83.32% 0.167 108.8)
XYZxyz(49.6905, 59.0367, 11.6829)
Luminance0.5904 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2D031 #3133D2
analogous
#D28031 #D2D031 #83D231
triadic
#D2D031 #31D2D0 #D031D2
tetradic
#D2D031 #31D280 #3133D2 #D23183
square
#D2D031 #31D280 #3133D2 #D23183
split-complementary
#D2D031 #3183D2 #8031D2
monochromatic
#706F18 #A2A123 #D2D031 #DDDB63 #E8E795

Accessibility & contrast

On white

1.64
#D2D031 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.81
#D2D031 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2D031
12.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2D031#FFFFFF#000000##000000
##D2D0311.001.6412.8112.81
#FFFFFF1.641.0021.0021.00
#00000012.8121.001.001.00
##00000012.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#E1C700
Deuteranopia (green-blind)
#E4CC3F
Tritanopia (blue-blind)
#E1C2B3
Achromatopsia (no color)
#CACACA

Design tokens & code

CSS
--color: #d2d031;
/* rgb */ color: rgb(210, 208, 49);
/* oklch */ color: oklch(83.3% 0.167 108.8);
Tailwind
colors: {
  custom: {
    50: '#e4de77',
    500: '#d2d031',
    950: '#000000',
  },
}
SCSS
$custom: #d2d031;
$custom-light: #e4de77;
$custom-dark: #000000;
JSON
{
  "hex": "#d2d031",
  "rgb": {
    "r": 210,
    "g": 208,
    "b": 49
  },
  "hsl": {
    "h": 59.255,
    "s": 64.143,
    "l": 50.784
  },
  "oklch": {
    "l": 0.83319,
    "c": 0.16746,
    "h": 108.8
  },
  "luminance": 0.59035
}

Semantic roles & 50–950 ramp

primary
#D2D031
secondary
#2E2F79
accent
#43E741
background
#FFFEFB
surface
#FEFCF1
border
#D6D5CB
text
#161509
muted
#85847D

Preview Lab

Preview with #D2D031

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

Preview Lab → · Contrast checker → · Palette generator →

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