#F8FFAB#F8FFAB

#F8FFAB is a very light, moderate yellow. Relative luminance 0.944; OKLCH L 97.6% C 0.105 H 112.2°. Best body text is #000000 at 19.88:1 contrast (WCAG AA passes).

Color values

HEX#F8FFAB
RGBrgb(248, 255, 171)
HSLhsl(65, 100%, 84%)
HSVhsv(65, 33%, 100%)
CMYKcmyk(2.7%, 0%, 32.9%, 0%)
CIE-LABlab(97.80, -14.87, 39.44)
CIE-LCHlch(97.80, 42.15, 110.66°)
OKLaboklab(97.58% -0.0399 0.0977)
OKLCHoklch(97.58% 0.106 112.2)
XYZxyz(81.8224, 94.4178, 52.4342)
Luminance0.9442 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F8FFAB #B2ABFF
analogous
#FFDCAB #F8FFAB #CEFFAB
triadic
#F8FFAB #ABF8FF #FFABF8
tetradic
#F8FFAB #ABFFDC #B2ABFF #FFABCE
square
#F8FFAB #ABFFDC #B2ABFF #FFABCE
split-complementary
#F8FFAB #ABCEFF #DCABFF
monochromatic
#EEFF31 #F3FF6E #F8FFAB #FCFFE0 #FCFFE0

Accessibility & contrast

On white

1.06
#F8FFAB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

19.88
#F8FFAB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F8FFAB
19.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F8FFAB#FFFFFF#000000##000000
##F8FFAB1.001.0619.8819.88
#FFFFFF1.061.0021.0021.00
#00000019.8821.001.001.00
##00000019.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFF7A5
Deuteranopia (green-blind)
#FFFAAF
Tritanopia (blue-blind)
#FFF5EA
Achromatopsia (no color)
#F9F9F9

Design tokens & code

CSS
--color: #f8ffab;
/* rgb */ color: rgb(248, 255, 171);
/* oklch */ color: oklch(97.6% 0.105 112.2);
Tailwind
colors: {
  custom: {
    50: '#fbffc5',
    500: '#f8ffab',
    950: '#000000',
  },
}
SCSS
$custom: #f8ffab;
$custom-light: #fbffc5;
$custom-dark: #000000;
JSON
{
  "hex": "#f8ffab",
  "rgb": {
    "r": 248,
    "g": 255,
    "b": 171
  },
  "hsl": {
    "h": 65,
    "s": 100,
    "l": 83.529
  },
  "oklch": {
    "l": 0.97579,
    "c": 0.1055,
    "h": 112.2
  },
  "luminance": 0.94417
}

Semantic roles & 50–950 ramp

primary
#F8FFAB
secondary
#746AE5
accent
#00E613
background
#FFFFFD
surface
#FFFFF9
border
#D7D7D2
text
#171813
muted
#858682

Preview Lab

Preview with #F8FFAB

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

Preview Lab → · Contrast checker → · Palette generator →

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