#FFE796#FFE796

#FFE796 is a very light, moderate yellow. Relative luminance 0.806; OKLCH L 93.0% C 0.104 H 93.5°. Best body text is #000000 at 17.12:1 contrast (WCAG AA passes).

Color values

HEX#FFE796
RGBrgb(255, 231, 150)
HSLhsl(46, 100%, 79%)
HSVhsv(46, 41%, 100%)
CMYKcmyk(0%, 9.4%, 41.2%, 0%)
CIE-LABlab(91.96, -2.65, 42.38)
CIE-LCHlch(91.96, 42.46, 93.58°)
OKLaboklab(92.98% -0.0063 0.1036)
OKLCHoklch(92.98% 0.104 93.5)
XYZxyz(75.3228, 80.6165, 40.4411)
Luminance0.8061 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FFE796 #96AEFF
analogous
#FFB396 #FFE796 #E2FF96
triadic
#FFE796 #96FFE7 #E796FF
tetradic
#FFE796 #96FFB3 #96AEFF #FF96E2
square
#FFE796 #96FFB3 #96AEFF #FF96E2
split-complementary
#FFE796 #96E2FF #B396FF
monochromatic
#FFCB1C #FFD959 #FFE796 #FFF5D3 #FFF8E0

Accessibility & contrast

On white

1.23
#FFE796 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

17.12
#FFE796 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FFE796
17.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FFE796#FFFFFF#000000##000000
##FFE7961.001.2317.1217.12
#FFFFFF1.231.0021.0021.00
#00000017.1221.001.001.00
##00000017.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#F7E490
Deuteranopia (green-blind)
#FDEB99
Tritanopia (blue-blind)
#FFDBD3
Achromatopsia (no color)
#E8E8E8

Design tokens & code

CSS
--color: #ffe796;
/* rgb */ color: rgb(255, 231, 150);
/* oklch */ color: oklch(93.0% 0.104 93.5);
Tailwind
colors: {
  custom: {
    50: '#ffeeb6',
    500: '#ffe796',
    950: '#000000',
  },
}
SCSS
$custom: #ffe796;
$custom-light: #ffeeb6;
$custom-dark: #000000;
JSON
{
  "hex": "#ffe796",
  "rgb": {
    "r": 255,
    "g": 231,
    "b": 150
  },
  "hsl": {
    "h": 46.286,
    "s": 100,
    "l": 79.412
  },
  "oklch": {
    "l": 0.92983,
    "c": 0.10377,
    "h": 93.5
  },
  "luminance": 0.80614
}

Semantic roles & 50–950 ramp

primary
#FFE796
secondary
#5877E1
accent
#34E600
background
#FFFFFD
surface
#FFFEF8
border
#D7D6D1
text
#181611
muted
#868581

Preview Lab

Preview with #FFE796

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

Preview Lab → · Contrast checker → · Palette generator →

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