#AF91FE#AF91FE

#AF91FE is a light, vivid violet. Relative luminance 0.365; OKLCH L 72.9% C 0.156 H 294.9°. Best body text is #000000 at 8.30:1 contrast (WCAG AA passes).

Color values

HEX#AF91FE
RGBrgb(175, 145, 254)
HSLhsl(257, 98%, 78%)
HSVhsv(257, 43%, 100%)
CMYKcmyk(31.1%, 42.9%, 0%, 0.4%)
CIE-LABlab(66.92, 34.29, -50.40)
CIE-LCHlch(66.92, 60.96, 304.23°)
OKLaboklab(72.85% 0.0657 -0.1414)
OKLCHoklch(72.85% 0.156 294.9)
XYZxyz(45.6895, 36.5198, 98.3886)
Luminance0.3652 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF91FE #E0FE91
analogous
#91A9FE #AF91FE #E691FE
triadic
#AF91FE #FEAF91 #91FEAF
tetradic
#AF91FE #FE91A9 #E0FE91 #91FEE6
square
#AF91FE #FE91A9 #E0FE91 #91FEE6
split-complementary
#AF91FE #FEE691 #A9FE91
monochromatic
#5718FD #8354FD #AF91FE #DBCEFF #E9E1FF

Accessibility & contrast

On white

2.53
#AF91FE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.30
#AF91FE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF91FE
8.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF91FE#FFFFFF#000000##000000
##AF91FE1.002.538.308.30
#FFFFFF2.531.0021.0021.00
#0000008.3021.001.001.00
##0000008.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#6FA4FF
Deuteranopia (green-blind)
#74A1FB
Tritanopia (blue-blind)
#9DA5BB
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #af91fe;
/* rgb */ color: rgb(175, 145, 254);
/* oklch */ color: oklch(72.9% 0.156 294.9);
Tailwind
colors: {
  custom: {
    50: '#c9b1ff',
    500: '#af91fe',
    950: '#000000',
  },
}
SCSS
$custom: #af91fe;
$custom-light: #c9b1ff;
$custom-dark: #000000;
JSON
{
  "hex": "#af91fe",
  "rgb": {
    "r": 175,
    "g": 145,
    "b": 254
  },
  "hsl": {
    "h": 256.514,
    "s": 98.198,
    "l": 78.235
  },
  "oklch": {
    "l": 0.72853,
    "c": 0.15595,
    "h": 294.9
  },
  "luminance": 0.36521
}

Semantic roles & 50–950 ramp

primary
#AF91FE
secondary
#EDF7D4
accent
#E600A6
background
#FCFAFF
surface
#F9F5FF
border
#D2CFD7
text
#131118
muted
#828086

Preview Lab

Preview with #AF91FE

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

Preview Lab → · Contrast checker → · Palette generator →

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