#F0AFFE#F0AFFE

#F0AFFE is a very light, vivid purple. Relative luminance 0.563; OKLCH L 84.0% C 0.127 H 320.3°. Best body text is #000000 at 12.27:1 contrast (WCAG AA passes).

Color values

HEX#F0AFFE
RGBrgb(240, 175, 254)
HSLhsl(289, 98%, 84%)
HSVhsv(289, 31%, 100%)
CMYKcmyk(5.5%, 31.1%, 0%, 0.4%)
CIE-LABlab(79.81, 36.74, -29.85)
CIE-LCHlch(79.81, 47.33, 320.90°)
OKLaboklab(84.05% 0.0981 -0.0813)
OKLCHoklch(84.05% 0.127 320.3)
XYZxyz(69.1522, 56.3428, 100.9792)
Luminance0.5634 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F0AFFE #BDFEAF
analogous
#C9AFFE #F0AFFE #FEAFE5
triadic
#F0AFFE #FEF0AF #AFFEF0
tetradic
#F0AFFE #FEC9AF #BDFEAF #AFE5FE
square
#F0AFFE #FEC9AF #BDFEAF #AFE5FE
split-complementary
#F0AFFE #E5FEAF #AFFEC9
monochromatic
#D936FC #E573FD #F0AFFE #F9E1FF #F9E1FF

Accessibility & contrast

On white

1.71
#F0AFFE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.27
#F0AFFE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F0AFFE
12.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F0AFFE#FFFFFF#000000##000000
##F0AFFE1.001.7112.2712.27
#FFFFFF1.711.0021.0021.00
#00000012.2721.001.001.00
##00000012.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#A6C1FF
Deuteranopia (green-blind)
#B5C8FB
Tritanopia (blue-blind)
#F2B8CC
Achromatopsia (no color)
#C6C6C6

Design tokens & code

CSS
--color: #f0affe;
/* rgb */ color: rgb(240, 175, 254);
/* oklch */ color: oklch(84.0% 0.127 320.3);
Tailwind
colors: {
  custom: {
    50: '#f6c7ff',
    500: '#f0affe',
    950: '#000000',
  },
}
SCSS
$custom: #f0affe;
$custom-light: #f6c7ff;
$custom-dark: #000000;
JSON
{
  "hex": "#f0affe",
  "rgb": {
    "r": 240,
    "g": 175,
    "b": 254
  },
  "hsl": {
    "h": 289.367,
    "s": 97.531,
    "l": 84.118
  },
  "oklch": {
    "l": 0.8405,
    "c": 0.12743,
    "h": 320.3
  },
  "luminance": 0.56341
}

Semantic roles & 50–950 ramp

primary
#F0AFFE
secondary
#83E46E
accent
#E60029
background
#FFFDFF
surface
#FEF9FF
border
#D6D2D7
text
#171318
muted
#858286

Preview Lab

Preview with #F0AFFE

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

Preview Lab → · Contrast checker → · Palette generator →

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