#D8D795#D8D795

#D8D795 is a very light, moderate yellow. Relative luminance 0.654; OKLCH L 86.4% C 0.085 H 107.3°. Best body text is #000000 at 14.07:1 contrast (WCAG AA passes).

Color values

HEX#D8D795
RGBrgb(216, 215, 149)
HSLhsl(59, 46%, 72%)
HSVhsv(59, 31%, 85%)
CMYKcmyk(0%, 0.5%, 31%, 15.3%)
CIE-LABlab(84.67, -9.73, 32.78)
CIE-LCHlch(84.67, 34.19, 106.54°)
OKLaboklab(86.45% -0.0254 0.0816)
OKLCHoklch(86.45% 0.085 107.3)
XYZxyz(58.0445, 65.3707, 37.9880)
Luminance0.6537 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D8D795 #9596D8
analogous
#D8B695 #D8D795 #B8D895
triadic
#D8D795 #95D8D7 #D795D8
tetradic
#D8D795 #95D8B6 #9596D8 #D895B8
square
#D8D795 #95D8B6 #9596D8 #D895B8
split-complementary
#D8D795 #95B8D8 #B695D8
monochromatic
#B1B041 #C8C668 #D8D795 #E8E8C2 #F7F7E9

Accessibility & contrast

On white

1.49
#D8D795 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.07
#D8D795 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D8D795
14.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D8D795#FFFFFF#000000##000000
##D8D7951.001.4914.0714.07
#FFFFFF1.491.0021.0021.00
#00000014.0721.001.001.00
##00000014.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#E2D290
Deuteranopia (green-blind)
#E3D598
Tritanopia (blue-blind)
#E1CFC6
Achromatopsia (no color)
#D3D3D3

Design tokens & code

CSS
--color: #d8d795;
/* rgb */ color: rgb(216, 215, 149);
/* oklch */ color: oklch(86.4% 0.085 107.3);
Tailwind
colors: {
  custom: {
    50: '#e5e3b4',
    500: '#d8d795',
    950: '#000000',
  },
}
SCSS
$custom: #d8d795;
$custom-light: #e5e3b4;
$custom-dark: #000000;
JSON
{
  "hex": "#d8d795",
  "rgb": {
    "r": 216,
    "g": 215,
    "b": 149
  },
  "hsl": {
    "h": 59.104,
    "s": 46.207,
    "l": 71.569
  },
  "oklch": {
    "l": 0.86445,
    "c": 0.08544,
    "h": 107.3
  },
  "luminance": 0.6537
}

Semantic roles & 50–950 ramp

primary
#D8D795
secondary
#6263AF
accent
#2EB92C
background
#FEFEFD
surface
#FCFCF8
border
#D5D5D1
text
#161511
muted
#848481

Preview Lab

Preview with #D8D795

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

Preview Lab → · Contrast checker → · Palette generator →

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