#FEF8FF#FEF8FF

#FEF8FF is a very light, near-neutral purple. Relative luminance 0.954; OKLCH L 98.6% C 0.011 H 321.3°. Best body text is #000000 at 20.09:1 contrast (WCAG AA passes).

Color values

HEX#FEF8FF
RGBrgb(254, 248, 255)
HSLhsl(291, 100%, 99%)
HSVhsv(291, 3%, 100%)
CMYKcmyk(0.4%, 2.7%, 0%, 0%)
CIE-LABlab(98.20, 3.21, -2.64)
CIE-LCHlch(98.20, 4.16, 320.62°)
OKLaboklab(98.57% 0.0087 -0.007)
OKLCHoklch(98.57% 0.011 321.3)
XYZxyz(92.4875, 95.4259, 108.1350)
Luminance0.9543 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF8FF #F9FFF8
analogous
#FAF8FF #FEF8FF #FFF8FC
triadic
#FEF8FF #FFFEF8 #F8FFFE
tetradic
#FEF8FF #FFFAF8 #F9FFF8 #F8FCFF
square
#FEF8FF #FFFAF8 #F9FFF8 #F8FCFF
split-complementary
#FEF8FF #FCFFF8 #F8FFFA
monochromatic
#ED7EFF #F5BBFF #FBE0FF #FBE0FF #FBE0FF

Accessibility & contrast

On white

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

On black

20.09
#FEF8FF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEF8FF
20.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEF8FF#FFFFFF#000000##000000
##FEF8FF1.001.0520.0920.09
#FFFFFF1.051.0021.0021.00
#00000020.0921.001.001.00
##00000020.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#F7F9FF
Deuteranopia (green-blind)
#F9FAFF
Tritanopia (blue-blind)
#FEF9FA
Achromatopsia (no color)
#FAFAFA

Design tokens & code

CSS
--color: #fef8ff;
/* rgb */ color: rgb(254, 248, 255);
/* oklch */ color: oklch(98.6% 0.011 321.3);
Tailwind
colors: {
  custom: {
    50: '#fefaff',
    500: '#fef8ff',
    950: '#000000',
  },
}
SCSS
$custom: #fef8ff;
$custom-light: #fefaff;
$custom-dark: #000000;
JSON
{
  "hex": "#fef8ff",
  "rgb": {
    "r": 254,
    "g": 248,
    "b": 255
  },
  "hsl": {
    "h": 291.429,
    "s": 100,
    "l": 98.627
  },
  "oklch": {
    "l": 0.98572,
    "c": 0.01116,
    "h": 321.3
  },
  "luminance": 0.95426
}

Semantic roles & 50–950 ramp

primary
#FEF8FF
secondary
#B5F0AB
accent
#E60021
background
#FFFFFF
surface
#FFFFFF
border
#D7D7D7
text
#171718
muted
#858586

Preview Lab

Preview with #FEF8FF

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

Preview Lab → · Contrast checker → · Palette generator →

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