#D5D796#D5D796

#D5D796 is a very light, moderate yellow. Relative luminance 0.649; OKLCH L 86.2% C 0.084 H 109.5°. Best body text is #000000 at 13.99:1 contrast (WCAG AA passes).

Color values

HEX#D5D796
RGBrgb(213, 215, 150)
HSLhsl(62, 45%, 72%)
HSVhsv(62, 30%, 84%)
CMYKcmyk(0.9%, 0%, 30.2%, 15.7%)
CIE-LABlab(84.46, -10.76, 31.94)
CIE-LCHlch(84.46, 33.70, 108.61°)
OKLaboklab(86.22% -0.0282 0.0796)
OKLCHoklch(86.22% 0.084 109.5)
XYZxyz(57.2463, 64.9499, 38.3691)
Luminance0.6495 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D5D796 #9896D7
analogous
#D7B996 #D5D796 #B5D796
triadic
#D5D796 #96D5D7 #D796D5
tetradic
#D5D796 #96D7B9 #9896D7 #D796B5
square
#D5D796 #96D7B9 #9896D7 #D796B5
split-complementary
#D5D796 #96B5D7 #B996D7
monochromatic
#ACB043 #C3C66A #D5D796 #E7E8C2 #F6F7E9

Accessibility & contrast

On white

1.50
#D5D796 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

13.99
#D5D796 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D5D796
13.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D5D796#FFFFFF#000000##000000
##D5D7961.001.5013.9913.99
#FFFFFF1.501.0021.0021.00
#00000013.9921.001.001.00
##00000013.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#E1D192
Deuteranopia (green-blind)
#E2D499
Tritanopia (blue-blind)
#DECFC6
Achromatopsia (no color)
#D3D3D3

Design tokens & code

CSS
--color: #d5d796;
/* rgb */ color: rgb(213, 215, 150);
/* oklch */ color: oklch(86.2% 0.084 109.5);
Tailwind
colors: {
  custom: {
    50: '#e2e3b5',
    500: '#d5d796',
    950: '#000000',
  },
}
SCSS
$custom: #d5d796;
$custom-light: #e2e3b5;
$custom-dark: #000000;
JSON
{
  "hex": "#d5d796",
  "rgb": {
    "r": 213,
    "g": 215,
    "b": 150
  },
  "hsl": {
    "h": 61.846,
    "s": 44.828,
    "l": 71.569
  },
  "oklch": {
    "l": 0.86222,
    "c": 0.08447,
    "h": 109.5
  },
  "luminance": 0.64949
}

Semantic roles & 50–950 ramp

primary
#D5D796
secondary
#6663AE
accent
#2EB832
background
#FEFEFD
surface
#FCFCF8
border
#D5D5D1
text
#151511
muted
#848481

Preview Lab

Preview with #D5D796

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

Preview Lab → · Contrast checker → · Palette generator →

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