#DED797#DED797

#DED797 is a very light, moderate yellow. Relative luminance 0.664; OKLCH L 87.0% C 0.083 H 102.7°. Best body text is #000000 at 14.27:1 contrast (WCAG AA passes).

Color values

HEX#DED797
RGBrgb(222, 215, 151)
HSLhsl(54, 52%, 73%)
HSVhsv(54, 32%, 87%)
CMYKcmyk(0%, 3.2%, 32%, 12.9%)
CIE-LABlab(85.18, -7.19, 32.51)
CIE-LCHlch(85.18, 33.30, 102.47°)
OKLaboklab(86.98% -0.0182 0.081)
OKLCHoklch(86.98% 0.083 102.7)
XYZxyz(60.0111, 66.3661, 38.9208)
Luminance0.6636 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#DED797 #979EDE
analogous
#DEB397 #DED797 #C1DE97
triadic
#DED797 #97DED7 #D797DE
tetradic
#DED797 #97DEB3 #979EDE #DE97C1
square
#DED797 #97DEB3 #979EDE #DE97C1
split-complementary
#DED797 #97C1DE #B397DE
monochromatic
#BEB13C #CFC569 #DED797 #EDE9C5 #F8F6E8

Accessibility & contrast

On white

1.47
#DED797 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.27
#DED797 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #DED797
14.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##DED797#FFFFFF#000000##000000
##DED7971.001.4714.2714.27
#FFFFFF1.471.0021.0021.00
#00000014.2721.001.001.00
##00000014.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#E2D393
Deuteranopia (green-blind)
#E5D799
Tritanopia (blue-blind)
#E8CFC6
Achromatopsia (no color)
#D5D5D5

Design tokens & code

CSS
--color: #ded797;
/* rgb */ color: rgb(222, 215, 151);
/* oklch */ color: oklch(87.0% 0.083 102.7);
Tailwind
colors: {
  custom: {
    50: '#e9e3b6',
    500: '#ded797',
    950: '#000000',
  },
}
SCSS
$custom: #ded797;
$custom-light: #e9e3b6;
$custom-dark: #000000;
JSON
{
  "hex": "#ded797",
  "rgb": {
    "r": 222,
    "g": 215,
    "b": 151
  },
  "hsl": {
    "h": 54.085,
    "s": 51.825,
    "l": 73.137
  },
  "oklch": {
    "l": 0.86975,
    "c": 0.08298,
    "h": 102.7
  },
  "luminance": 0.66365
}

Semantic roles & 50–950 ramp

primary
#DED797
secondary
#636BB6
accent
#35BF26
background
#FEFEFD
surface
#FDFCF8
border
#D5D5D1
text
#161511
muted
#848481

Preview Lab

Preview with #DED797

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

Preview Lab → · Contrast checker → · Palette generator →

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