#D2D795#D2D795

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

Color values

HEX#D2D795
RGBrgb(210, 215, 149)
HSLhsl(65, 45%, 71%)
HSVhsv(65, 31%, 84%)
CMYKcmyk(2.3%, 0%, 30.7%, 15.7%)
CIE-LABlab(84.21, -12.02, 32.08)
CIE-LCHlch(84.21, 34.26, 110.54°)
OKLaboklab(85.96% -0.0318 0.0799)
OKLCHoklch(85.96% 0.086 111.7)
XYZxyz(56.3037, 64.4731, 37.9064)
Luminance0.6447 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D2D795 #9A95D7
analogous
#D7BB95 #D2D795 #B1D795
triadic
#D2D795 #95D2D7 #D795D2
tetradic
#D2D795 #95D7BB #9A95D7 #D795B1
square
#D2D795 #95D7BB #9A95D7 #D795B1
split-complementary
#D2D795 #95B1D7 #BB95D7
monochromatic
#A7AF42 #BFC669 #D2D795 #E5E8C1 #F6F7E9

Accessibility & contrast

On white

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

On black

13.89
#D2D795 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D2D795
13.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D2D795#FFFFFF#000000##000000
##D2D7951.001.5113.8913.89
#FFFFFF1.511.0021.0021.00
#00000013.8921.001.001.00
##00000013.8921.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #d2d795;
/* rgb */ color: rgb(210, 215, 149);
/* oklch */ color: oklch(86.0% 0.086 111.7);
Tailwind
colors: {
  custom: {
    50: '#e0e3b4',
    500: '#d2d795',
    950: '#000000',
  },
}
SCSS
$custom: #d2d795;
$custom-light: #e0e3b4;
$custom-dark: #000000;
JSON
{
  "hex": "#d2d795",
  "rgb": {
    "r": 210,
    "g": 215,
    "b": 149
  },
  "hsl": {
    "h": 64.545,
    "s": 45.205,
    "l": 71.373
  },
  "oklch": {
    "l": 0.85964,
    "c": 0.08605,
    "h": 111.7
  },
  "luminance": 0.64472
}

Semantic roles & 50–950 ramp

primary
#D2D795
secondary
#6862AE
accent
#2DB838
background
#FEFEFD
surface
#FCFCF8
border
#D5D5D1
text
#151511
muted
#848481

Preview Lab

Preview with #D2D795

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

Preview Lab → · Contrast checker → · Palette generator →

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