#AF96FA#AF96FA

#AF96FA is a light, vivid violet. Relative luminance 0.378; OKLCH L 73.5% C 0.143 H 294.1°. Best body text is #000000 at 8.57:1 contrast (WCAG AA passes).

Color values

HEX#AF96FA
RGBrgb(175, 150, 250)
HSLhsl(255, 91%, 78%)
HSVhsv(255, 40%, 98%)
CMYKcmyk(30%, 40%, 0%, 2%)
CIE-LABlab(67.89, 30.49, -46.67)
CIE-LCHlch(67.89, 55.75, 303.15°)
OKLaboklab(73.53% 0.0584 -0.1306)
OKLCHoklch(73.53% 0.143 294.1)
XYZxyz(45.8366, 37.8281, 95.3106)
Luminance0.3783 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF96FA #E1FA96
analogous
#96AFFA #AF96FA #E196FA
triadic
#AF96FA #FAAF96 #96FAAF
tetradic
#AF96FA #FA96AF #E1FA96 #96FAE1
square
#AF96FA #FA96AF #E1FA96 #96FAE1
split-complementary
#AF96FA #FAE196 #AFFA96
monochromatic
#5621F4 #825CF7 #AF96FA #DCD0FD #E9E2FE

Accessibility & contrast

On white

2.45
#AF96FA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.57
#AF96FA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF96FA
8.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF96FA#FFFFFF#000000##000000
##AF96FA1.002.458.578.57
#FFFFFF2.451.0021.0021.00
#0000008.5721.001.001.00
##0000008.5721.001.001.00

Color blindness preview

Protanopia (red-blind)
#79A6FE
Deuteranopia (green-blind)
#7CA4F7
Tritanopia (blue-blind)
#9EA8BC
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #af96fa;
/* rgb */ color: rgb(175, 150, 250);
/* oklch */ color: oklch(73.5% 0.143 294.1);
Tailwind
colors: {
  custom: {
    50: '#c9b5fc',
    500: '#af96fa',
    950: '#000000',
  },
}
SCSS
$custom: #af96fa;
$custom-light: #c9b5fc;
$custom-dark: #000000;
JSON
{
  "hex": "#af96fa",
  "rgb": {
    "r": 175,
    "g": 150,
    "b": 250
  },
  "hsl": {
    "h": 255,
    "s": 90.909,
    "l": 78.431
  },
  "oklch": {
    "l": 0.73532,
    "c": 0.14308,
    "h": 294.1
  },
  "luminance": 0.37829
}

Semantic roles & 50–950 ramp

primary
#AF96FA
secondary
#EEF6D5
accent
#E600AC
background
#FCFBFF
surface
#F8F6FF
border
#D1D0D7
text
#131117
muted
#828085

Preview Lab

Preview with #AF96FA

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

Preview Lab → · Contrast checker → · Palette generator →

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