#FFE998#FFE998

#FFE998 is a very light, moderate yellow. Relative luminance 0.818; OKLCH L 93.4% C 0.103 H 94.7°. Best body text is #000000 at 17.36:1 contrast (WCAG AA passes).

Color values

HEX#FFE998
RGBrgb(255, 233, 152)
HSLhsl(47, 100%, 80%)
HSVhsv(47, 40%, 100%)
CMYKcmyk(0%, 8.6%, 40.4%, 0%)
CIE-LABlab(92.49, -3.45, 42.06)
CIE-LCHlch(92.49, 42.20, 94.69°)
OKLaboklab(93.41% -0.0085 0.103)
OKLCHoklch(93.41% 0.103 94.7)
XYZxyz(76.0481, 81.8074, 41.4842)
Luminance0.8181 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FFE998 #98AEFF
analogous
#FFB598 #FFE998 #E2FF98
triadic
#FFE998 #98FFE9 #E998FF
tetradic
#FFE998 #98FFB5 #98AEFF #FF98E2
square
#FFE998 #98FFB5 #98AEFF #FF98E2
split-complementary
#FFE998 #98E2FF #B598FF
monochromatic
#FFCF1E #FFDC5B #FFE998 #FFF6D5 #FFF8E0

Accessibility & contrast

On white

1.21
#FFE998 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

17.36
#FFE998 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FFE998
17.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FFE998#FFFFFF#000000##000000
##FFE9981.001.2117.3617.36
#FFFFFF1.211.0021.0021.00
#00000017.3621.001.001.00
##00000017.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#F9E592
Deuteranopia (green-blind)
#FFED9B
Tritanopia (blue-blind)
#FFDDD5
Achromatopsia (no color)
#E9E9E9

Design tokens & code

CSS
--color: #ffe998;
/* rgb */ color: rgb(255, 233, 152);
/* oklch */ color: oklch(93.4% 0.103 94.7);
Tailwind
colors: {
  custom: {
    50: '#ffefb7',
    500: '#ffe998',
    950: '#000000',
  },
}
SCSS
$custom: #ffe998;
$custom-light: #ffefb7;
$custom-dark: #000000;
JSON
{
  "hex": "#ffe998",
  "rgb": {
    "r": 255,
    "g": 233,
    "b": 152
  },
  "hsl": {
    "h": 47.184,
    "s": 100,
    "l": 79.804
  },
  "oklch": {
    "l": 0.93411,
    "c": 0.1033,
    "h": 94.7
  },
  "luminance": 0.81805
}

Semantic roles & 50–950 ramp

primary
#FFE998
secondary
#5977E2
accent
#31E600
background
#FFFFFD
surface
#FFFEF8
border
#D7D6D1
text
#181611
muted
#868581

Preview Lab

Preview with #FFE998

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

Preview Lab → · Contrast checker → · Palette generator →

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