#FFE798#FFE798

#FFE798 is a very light, moderate yellow. Relative luminance 0.807; OKLCH L 93.0% C 0.102 H 93.1°. Best body text is #000000 at 17.14:1 contrast (WCAG AA passes).

Color values

HEX#FFE798
RGBrgb(255, 231, 152)
HSLhsl(46, 100%, 80%)
HSVhsv(46, 40%, 100%)
CMYKcmyk(0%, 9.4%, 40.4%, 0%)
CIE-LABlab(91.99, -2.44, 41.42)
CIE-LCHlch(91.99, 41.49, 93.37°)
OKLaboklab(93.02% -0.0056 0.1015)
OKLCHoklch(93.02% 0.102 93.1)
XYZxyz(75.4852, 80.6815, 41.2965)
Luminance0.8068 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FFE798 #98B0FF
analogous
#FFB398 #FFE798 #E4FF98
triadic
#FFE798 #98FFE7 #E798FF
tetradic
#FFE798 #98FFB3 #98B0FF #FF98E4
square
#FFE798 #98FFB3 #98B0FF #FF98E4
split-complementary
#FFE798 #98E4FF #B398FF
monochromatic
#FFCA1E #FFD95B #FFE798 #FFF5D5 #FFF8E0

Accessibility & contrast

On white

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

On black

17.14
#FFE798 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FFE798
17.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FFE798#FFFFFF#000000##000000
##FFE7981.001.2317.1417.14
#FFFFFF1.231.0021.0021.00
#00000017.1421.001.001.00
##00000017.1421.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #ffe798;
/* rgb */ color: rgb(255, 231, 152);
/* oklch */ color: oklch(93.0% 0.102 93.1);
Tailwind
colors: {
  custom: {
    50: '#ffeeb7',
    500: '#ffe798',
    950: '#000000',
  },
}
SCSS
$custom: #ffe798;
$custom-light: #ffeeb7;
$custom-dark: #000000;
JSON
{
  "hex": "#ffe798",
  "rgb": {
    "r": 255,
    "g": 231,
    "b": 152
  },
  "hsl": {
    "h": 46.019,
    "s": 100,
    "l": 79.804
  },
  "oklch": {
    "l": 0.93016,
    "c": 0.10163,
    "h": 93.1
  },
  "luminance": 0.80679
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #FFE798

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

Preview Lab → · Contrast checker → · Palette generator →

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