#D2D796#D2D796

#D2D796 is a very light, moderate yellow. Relative luminance 0.645; OKLCH L 86.0% C 0.085 H 111.7°. Best body text is #000000 at 13.90:1 contrast (WCAG AA passes).

Color values

HEX#D2D796
RGBrgb(210, 215, 150)
HSLhsl(65, 45%, 72%)
HSVhsv(65, 30%, 84%)
CMYKcmyk(2.3%, 0%, 30.2%, 15.7%)
CIE-LABlab(84.23, -11.90, 31.59)
CIE-LCHlch(84.23, 33.76, 110.63°)
OKLaboklab(85.98% -0.0314 0.0788)
OKLCHoklch(85.98% 0.085 111.7)
XYZxyz(56.3839, 64.5052, 38.3287)
Luminance0.6451 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2D796 #9B96D7
analogous
#D7BC96 #D2D796 #B2D796
triadic
#D2D796 #96D2D7 #D796D2
tetradic
#D2D796 #96D7BC #9B96D7 #D796B2
square
#D2D796 #96D7BC #9B96D7 #D796B2
split-complementary
#D2D796 #96B2D7 #BC96D7
monochromatic
#A7B043 #BFC66A #D2D796 #E5E8C2 #F6F7E9

Accessibility & contrast

On white

1.51
#D2D796 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.90
#D2D796 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2D796
13.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2D796#FFFFFF#000000##000000
##D2D7961.001.5113.9013.90
#FFFFFF1.511.0021.0021.00
#00000013.9021.001.001.00
##00000013.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#E1D192
Deuteranopia (green-blind)
#E1D399
Tritanopia (blue-blind)
#DACFC6
Achromatopsia (no color)
#D2D2D2

Design tokens & code

CSS
--color: #d2d796;
/* rgb */ color: rgb(210, 215, 150);
/* oklch */ color: oklch(86.0% 0.085 111.7);
Tailwind
colors: {
  custom: {
    50: '#e0e3b5',
    500: '#d2d796',
    950: '#000000',
  },
}
SCSS
$custom: #d2d796;
$custom-light: #e0e3b5;
$custom-dark: #000000;
JSON
{
  "hex": "#d2d796",
  "rgb": {
    "r": 210,
    "g": 215,
    "b": 150
  },
  "hsl": {
    "h": 64.615,
    "s": 44.828,
    "l": 71.569
  },
  "oklch": {
    "l": 0.85983,
    "c": 0.08484,
    "h": 111.7
  },
  "luminance": 0.64505
}

Semantic roles & 50–950 ramp

primary
#D2D796
secondary
#6963AE
accent
#2EB838
background
#FEFEFD
surface
#FCFCF8
border
#D5D5D1
text
#151511
muted
#848481

Preview Lab

Preview with #D2D796

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

Preview Lab → · Contrast checker → · Palette generator →

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