#AF96FE#AF96FE

#AF96FE is a light, vivid violet. Relative luminance 0.381; OKLCH L 73.7% C 0.148 H 293.5°. Best body text is #000000 at 8.62:1 contrast (WCAG AA passes).

Color values

HEX#AF96FE
RGBrgb(175, 150, 254)
HSLhsl(254, 98%, 79%)
HSVhsv(254, 41%, 100%)
CMYKcmyk(31.1%, 40.9%, 0%, 0.4%)
CIE-LABlab(68.08, 31.48, -48.56)
CIE-LCHlch(68.08, 57.87, 302.95°)
OKLaboklab(73.74% 0.0591 -0.1361)
OKLCHoklch(73.74% 0.148 293.5)
XYZxyz(46.4704, 38.0816, 98.6489)
Luminance0.3808 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF96FE #E5FE96
analogous
#96B1FE #AF96FE #E396FE
triadic
#AF96FE #FEAF96 #96FEAF
tetradic
#AF96FE #FE96B1 #E5FE96 #96FEE3
square
#AF96FE #FE96B1 #E5FE96 #96FEE3
split-complementary
#AF96FE #FEE396 #B1FE96
monochromatic
#531DFD #8159FD #AF96FE #DDD3FF #E8E1FF

Accessibility & contrast

On white

2.44
#AF96FE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.62
#AF96FE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF96FE
8.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF96FE#FFFFFF#000000##000000
##AF96FE1.002.448.628.62
#FFFFFF2.441.0021.0021.00
#0000008.6221.001.001.00
##0000008.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#77A7FF
Deuteranopia (green-blind)
#7AA4FB
Tritanopia (blue-blind)
#9DA9BE
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #af96fe;
/* rgb */ color: rgb(175, 150, 254);
/* oklch */ color: oklch(73.7% 0.148 293.5);
Tailwind
colors: {
  custom: {
    50: '#c9b5ff',
    500: '#af96fe',
    950: '#000000',
  },
}
SCSS
$custom: #af96fe;
$custom-light: #c9b5ff;
$custom-dark: #000000;
JSON
{
  "hex": "#af96fe",
  "rgb": {
    "r": 175,
    "g": 150,
    "b": 254
  },
  "hsl": {
    "h": 254.423,
    "s": 98.113,
    "l": 79.216
  },
  "oklch": {
    "l": 0.73735,
    "c": 0.14838,
    "h": 293.5
  },
  "luminance": 0.38082
}

Semantic roles & 50–950 ramp

primary
#AF96FE
secondary
#EFF7D4
accent
#E600AE
background
#FCFBFF
surface
#F9F6FF
border
#D2D0D7
text
#131118
muted
#828086

Preview Lab

Preview with #AF96FE

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

Preview Lab → · Contrast checker → · Palette generator →

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