#D2D381#D2D381

#D2D381 is a very light, moderate yellow. Relative luminance 0.619; OKLCH L 84.8% C 0.104 H 109.0°. Best body text is #000000 at 13.38:1 contrast (WCAG AA passes).

Color values

HEX#D2D381
RGBrgb(210, 211, 129)
HSLhsl(61, 48%, 67%)
HSVhsv(61, 39%, 83%)
CMYKcmyk(0.5%, 0%, 38.9%, 17.3%)
CIE-LABlab(82.85, -12.37, 40.47)
CIE-LCHlch(82.85, 42.32, 107.00°)
OKLaboklab(84.78% -0.034 0.0986)
OKLCHoklch(84.78% 0.104 109)
XYZxyz(53.8358, 61.8762, 29.8719)
Luminance0.6188 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2D381 #8281D3
analogous
#D3AB81 #D2D381 #A9D381
triadic
#D2D381 #81D2D3 #D381D2
tetradic
#D2D381 #81D3AB #8281D3 #D381A9
square
#D2D381 #81D3AB #8281D3 #D381A9
split-complementary
#D2D381 #81A9D3 #AB81D3
monochromatic
#A0A138 #C2C354 #D2D381 #E2E3AE #F2F3DC

Accessibility & contrast

On white

1.57
#D2D381 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.38
#D2D381 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2D381
13.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2D381#FFFFFF#000000##000000
##D2D3811.001.5713.3813.38
#FFFFFF1.571.0021.0021.00
#00000013.3821.001.001.00
##00000013.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#DFCD7B
Deuteranopia (green-blind)
#E0D085
Tritanopia (blue-blind)
#DDCABF
Achromatopsia (no color)
#CECECE

Design tokens & code

CSS
--color: #d2d381;
/* rgb */ color: rgb(210, 211, 129);
/* oklch */ color: oklch(84.8% 0.104 109.0);
Tailwind
colors: {
  custom: {
    50: '#e1e0a7',
    500: '#d2d381',
    950: '#000000',
  },
}
SCSS
$custom: #d2d381;
$custom-light: #e1e0a7;
$custom-dark: #000000;
JSON
{
  "hex": "#d2d381",
  "rgb": {
    "r": 210,
    "g": 211,
    "b": 129
  },
  "hsl": {
    "h": 60.732,
    "s": 48.235,
    "l": 66.667
  },
  "oklch": {
    "l": 0.8478,
    "c": 0.1043,
    "h": 109
  },
  "luminance": 0.61875
}

Semantic roles & 50–950 ramp

primary
#D2D381
secondary
#5352A6
accent
#2ABC2C
background
#FEFEFC
surface
#FCFCF6
border
#D5D5D0
text
#15150F
muted
#848480

Preview Lab

Preview with #D2D381

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

Preview Lab → · Contrast checker → · Palette generator →

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