#AF96FC#AF96FC

#AF96FC is a light, vivid violet. Relative luminance 0.380; OKLCH L 73.6% C 0.146 H 293.8°. Best body text is #000000 at 8.59:1 contrast (WCAG AA passes).

Color values

HEX#AF96FC
RGBrgb(175, 150, 252)
HSLhsl(255, 94%, 79%)
HSVhsv(255, 40%, 99%)
CMYKcmyk(30.6%, 40.5%, 0%, 1.2%)
CIE-LABlab(67.99, 30.98, -47.62)
CIE-LCHlch(67.99, 56.81, 303.05°)
OKLaboklab(73.63% 0.0588 -0.1333)
OKLCHoklch(73.63% 0.146 293.8)
XYZxyz(46.1518, 37.9542, 96.9709)
Luminance0.3795 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF96FC #E3FC96
analogous
#96B0FC #AF96FC #E296FC
triadic
#AF96FC #FCAF96 #96FCAF
tetradic
#AF96FC #FC96B0 #E3FC96 #96FCE2
square
#AF96FC #FC96B0 #E3FC96 #96FCE2
split-complementary
#AF96FC #FCE296 #B0FC96
monochromatic
#541FF9 #825BFA #AF96FC #DCD2FE #E8E1FE

Accessibility & contrast

On white

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

On black

8.59
#AF96FC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF96FC
8.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF96FC#FFFFFF#000000##000000
##AF96FC1.002.448.598.59
#FFFFFF2.441.0021.0021.00
#0000008.5921.001.001.00
##0000008.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#78A7FF
Deuteranopia (green-blind)
#7BA4F9
Tritanopia (blue-blind)
#9EA8BD
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #af96fc;
/* rgb */ color: rgb(175, 150, 252);
/* oklch */ color: oklch(73.6% 0.146 293.8);
Tailwind
colors: {
  custom: {
    50: '#c9b5fe',
    500: '#af96fc',
    950: '#000000',
  },
}
SCSS
$custom: #af96fc;
$custom-light: #c9b5fe;
$custom-dark: #000000;
JSON
{
  "hex": "#af96fc",
  "rgb": {
    "r": 175,
    "g": 150,
    "b": 252
  },
  "hsl": {
    "h": 254.706,
    "s": 94.444,
    "l": 78.824
  },
  "oklch": {
    "l": 0.73633,
    "c": 0.14573,
    "h": 293.8
  },
  "luminance": 0.37955
}

Semantic roles & 50–950 ramp

primary
#AF96FC
secondary
#EEF6D5
accent
#E600AD
background
#FCFBFF
surface
#F9F6FF
border
#D2D0D7
text
#131118
muted
#828086

Preview Lab

Preview with #AF96FC

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

Preview Lab → · Contrast checker → · Palette generator →

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