#FFE797#FFE797

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

Color values

HEX#FFE797
RGBrgb(255, 231, 151)
HSLhsl(46, 100%, 80%)
HSVhsv(46, 41%, 100%)
CMYKcmyk(0%, 9.4%, 40.8%, 0%)
CIE-LABlab(91.98, -2.55, 41.90)
CIE-LCHlch(91.98, 41.97, 93.48°)
OKLaboklab(93% -0.006 0.1025)
OKLCHoklch(93% 0.103 93.3)
XYZxyz(75.4036, 80.6489, 40.8670)
Luminance0.8065 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FFE797 #97AFFF
analogous
#FFB397 #FFE797 #E3FF97
triadic
#FFE797 #97FFE7 #E797FF
tetradic
#FFE797 #97FFB3 #97AFFF #FF97E3
square
#FFE797 #97FFB3 #97AFFF #FF97E3
split-complementary
#FFE797 #97E3FF #B397FF
monochromatic
#FFCB1D #FFD95A #FFE797 #FFF5D4 #FFF8E0

Accessibility & contrast

On white

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

On black

17.13
#FFE797 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FFE797
17.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FFE797#FFFFFF#000000##000000
##FFE7971.001.2317.1317.13
#FFFFFF1.231.0021.0021.00
#00000017.1321.001.001.00
##00000017.1321.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #ffe797;
/* rgb */ color: rgb(255, 231, 151);
/* oklch */ color: oklch(93.0% 0.103 93.3);
Tailwind
colors: {
  custom: {
    50: '#ffeeb6',
    500: '#ffe797',
    950: '#000000',
  },
}
SCSS
$custom: #ffe797;
$custom-light: #ffeeb6;
$custom-dark: #000000;
JSON
{
  "hex": "#ffe797",
  "rgb": {
    "r": 255,
    "g": 231,
    "b": 151
  },
  "hsl": {
    "h": 46.154,
    "s": 100,
    "l": 79.608
  },
  "oklch": {
    "l": 0.93,
    "c": 0.1027,
    "h": 93.3
  },
  "luminance": 0.80646
}

Semantic roles & 50–950 ramp

primary
#FFE797
secondary
#5978E2
accent
#35E600
background
#FFFFFD
surface
#FFFEF8
border
#D7D6D1
text
#181611
muted
#868581

Preview Lab

Preview with #FFE797

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

Preview Lab → · Contrast checker → · Palette generator →

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