#AF96FF#AF96FF

#AF96FF is a light, vivid violet. Relative luminance 0.381; OKLCH L 73.8% C 0.150 H 293.3°. Best body text is #000000 at 8.63:1 contrast (WCAG AA passes).

Color values

HEX#AF96FF
RGBrgb(175, 150, 255)
HSLhsl(254, 100%, 79%)
HSVhsv(254, 41%, 100%)
CMYKcmyk(31.4%, 41.2%, 0%, 0%)
CIE-LABlab(68.13, 31.73, -49.03)
CIE-LCHlch(68.13, 58.40, 302.91°)
OKLaboklab(73.79% 0.0593 -0.1374)
OKLCHoklch(73.79% 0.15 293.3)
XYZxyz(46.6310, 38.1458, 99.4944)
Luminance0.3815 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF96FF #E6FF96
analogous
#96B2FF #AF96FF #E496FF
triadic
#AF96FF #FFAF96 #96FFAF
tetradic
#AF96FF #FF96B2 #E6FF96 #96FFE4
square
#AF96FF #FF96B2 #E6FF96 #96FFE4
split-complementary
#AF96FF #FFE496 #B2FF96
monochromatic
#521CFF #8059FF #AF96FF #DED3FF #E8E0FF

Accessibility & contrast

On white

2.43
#AF96FF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.63
#AF96FF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF96FF
8.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF96FF#FFFFFF#000000##000000
##AF96FF1.002.438.638.63
#FFFFFF2.431.0021.0021.00
#0000008.6321.001.001.00
##0000008.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#76A7FF
Deuteranopia (green-blind)
#79A4FC
Tritanopia (blue-blind)
#9DA9BE
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #af96ff;
/* rgb */ color: rgb(175, 150, 255);
/* oklch */ color: oklch(73.8% 0.150 293.3);
Tailwind
colors: {
  custom: {
    50: '#c9b5ff',
    500: '#af96ff',
    950: '#000000',
  },
}
SCSS
$custom: #af96ff;
$custom-light: #c9b5ff;
$custom-dark: #000000;
JSON
{
  "hex": "#af96ff",
  "rgb": {
    "r": 175,
    "g": 150,
    "b": 255
  },
  "hsl": {
    "h": 254.286,
    "s": 100,
    "l": 79.412
  },
  "oklch": {
    "l": 0.73786,
    "c": 0.1497,
    "h": 293.3
  },
  "luminance": 0.38147
}

Semantic roles & 50–950 ramp

primary
#AF96FF
secondary
#EFF7D4
accent
#E600AF
background
#FCFBFF
surface
#F9F6FF
border
#D2D0D7
text
#131118
muted
#828086

Preview Lab

Preview with #AF96FF

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

Preview Lab → · Contrast checker → · Palette generator →

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