#D2D786#D2D786

#D2D786 is a very light, moderate yellow. Relative luminance 0.640; OKLCH L 85.7% C 0.104 H 111.4°. Best body text is #000000 at 13.80:1 contrast (WCAG AA passes).

Color values

HEX#D2D786
RGBrgb(210, 215, 134)
HSLhsl(64, 50%, 68%)
HSVhsv(64, 38%, 84%)
CMYKcmyk(2.3%, 0%, 37.7%, 15.7%)
CIE-LABlab(83.98, -13.83, 39.40)
CIE-LCHlch(83.98, 41.76, 109.33°)
OKLaboklab(85.7% -0.0378 0.0964)
OKLCHoklch(85.7% 0.104 111.4)
XYZxyz(55.1824, 64.0246, 32.0007)
Luminance0.6402 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2D786 #8B86D7
analogous
#D7B386 #D2D786 #A9D786
triadic
#D2D786 #86D2D7 #D786D2
tetradic
#D2D786 #86D7B3 #8B86D7 #D786A9
square
#D2D786 #86D7B3 #8B86D7 #D786A9
split-complementary
#D2D786 #86A9D7 #B386D7
monochromatic
#A3AA38 #C1C858 #D2D786 #E3E6B4 #F4F5E2

Accessibility & contrast

On white

1.52
#D2D786 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.80
#D2D786 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2D786
13.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2D786#FFFFFF#000000##000000
##D2D7861.001.5213.8013.80
#FFFFFF1.521.0021.0021.00
#00000013.8021.001.001.00
##00000013.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#E3D080
Deuteranopia (green-blind)
#E3D38A
Tritanopia (blue-blind)
#DCCEC3
Achromatopsia (no color)
#D1D1D1

Design tokens & code

CSS
--color: #d2d786;
/* rgb */ color: rgb(210, 215, 134);
/* oklch */ color: oklch(85.7% 0.104 111.4);
Tailwind
colors: {
  custom: {
    50: '#e1e3aa',
    500: '#d2d786',
    950: '#000000',
  },
}
SCSS
$custom: #d2d786;
$custom-light: #e1e3aa;
$custom-dark: #000000;
JSON
{
  "hex": "#d2d786",
  "rgb": {
    "r": 210,
    "g": 215,
    "b": 134
  },
  "hsl": {
    "h": 63.704,
    "s": 50.311,
    "l": 68.431
  },
  "oklch": {
    "l": 0.85703,
    "c": 0.10356,
    "h": 111.4
  },
  "luminance": 0.64024
}

Semantic roles & 50–950 ramp

primary
#D2D786
secondary
#5A54AD
accent
#28BE31
background
#FEFEFD
surface
#FCFCF7
border
#D5D5D0
text
#151510
muted
#848481

Preview Lab

Preview with #D2D786

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

Preview Lab → · Contrast checker → · Palette generator →

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