#FFFF98#FFFF98

#FFFF98 is a very light, vivid yellow. Relative luminance 0.950; OKLCH L 97.8% C 0.125 H 108.5°. Best body text is #000000 at 20.01:1 contrast (WCAG AA passes).

Color values

HEX#FFFF98
RGBrgb(255, 255, 152)
HSLhsl(60, 100%, 80%)
HSVhsv(60, 40%, 100%)
CMYKcmyk(0%, 0%, 40.4%, 0%)
CIE-LABlab(98.05, -14.33, 49.13)
CIE-LCHlch(98.05, 51.17, 106.26°)
OKLaboklab(97.82% -0.0398 0.119)
OKLCHoklch(97.82% 0.125 108.5)
XYZxyz(82.6688, 95.0487, 43.6911)
Luminance0.9505 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FFFF98 #9898FF
analogous
#FFCC98 #FFFF98 #CCFF98
triadic
#FFFF98 #98FFFF #FF98FF
tetradic
#FFFF98 #98FFCC #9898FF #FF98CC
square
#FFFF98 #98FFCC #9898FF #FF98CC
split-complementary
#FFFF98 #98CCFF #CC98FF
monochromatic
#FFFF1E #FFFF5B #FFFF98 #FFFFD5 #FFFFE0

Accessibility & contrast

On white

1.05
#FFFF98 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

20.01
#FFFF98 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FFFF98
20.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FFFF98#FFFFFF#000000##000000
##FFFF981.001.0520.0120.01
#FFFFFF1.051.0021.0021.00
#00000020.0121.001.001.00
##00000020.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFF790
Deuteranopia (green-blind)
#FFFB9D
Tritanopia (blue-blind)
#FFF3E6
Achromatopsia (no color)
#F9F9F9

Design tokens & code

CSS
--color: #ffff98;
/* rgb */ color: rgb(255, 255, 152);
/* oklch */ color: oklch(97.8% 0.125 108.5);
Tailwind
colors: {
  custom: {
    50: '#ffffb8',
    500: '#ffff98',
    950: '#000000',
  },
}
SCSS
$custom: #ffff98;
$custom-light: #ffffb8;
$custom-dark: #000000;
JSON
{
  "hex": "#ffff98",
  "rgb": {
    "r": 255,
    "g": 255,
    "b": 152
  },
  "hsl": {
    "h": 60,
    "s": 100,
    "l": 79.804
  },
  "oklch": {
    "l": 0.97821,
    "c": 0.12549,
    "h": 108.5
  },
  "luminance": 0.95047
}

Semantic roles & 50–950 ramp

primary
#FFFF98
secondary
#5959E2
accent
#00E600
background
#FFFFFD
surface
#FFFFF8
border
#D7D7D1
text
#181711
muted
#868581

Preview Lab

Preview with #FFFF98

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

Preview Lab → · Contrast checker → · Palette generator →

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