#AF91FC#AF91FC

#AF91FC is a light, vivid violet. Relative luminance 0.364; OKLCH L 72.7% C 0.153 H 295.2°. Best body text is #000000 at 8.28:1 contrast (WCAG AA passes).

Color values

HEX#AF91FC
RGBrgb(175, 145, 252)
HSLhsl(257, 95%, 78%)
HSVhsv(257, 42%, 99%)
CMYKcmyk(30.6%, 42.5%, 0%, 1.2%)
CIE-LABlab(66.82, 33.79, -49.46)
CIE-LCHlch(66.82, 59.90, 304.34°)
OKLaboklab(72.75% 0.0654 -0.1387)
OKLCHoklch(72.75% 0.153 295.2)
XYZxyz(45.3709, 36.3924, 96.7106)
Luminance0.3639 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF91FC #DEFC91
analogous
#91A9FC #AF91FC #E491FC
triadic
#AF91FC #FCAF91 #91FCAF
tetradic
#AF91FC #FC91A9 #DEFC91 #91FCE4
square
#AF91FC #FC91A9 #DEFC91 #91FCE4
split-complementary
#AF91FC #FCE491 #A9FC91
monochromatic
#581AF9 #8455FA #AF91FC #DACDFE #E9E1FE

Accessibility & contrast

On white

2.54
#AF91FC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.28
#AF91FC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF91FC
8.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF91FC#FFFFFF#000000##000000
##AF91FC1.002.548.288.28
#FFFFFF2.541.0021.0021.00
#0000008.2821.001.001.00
##0000008.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#71A3FF
Deuteranopia (green-blind)
#75A1F9
Tritanopia (blue-blind)
#9EA4BA
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #af91fc;
/* rgb */ color: rgb(175, 145, 252);
/* oklch */ color: oklch(72.7% 0.153 295.2);
Tailwind
colors: {
  custom: {
    50: '#c9b1fe',
    500: '#af91fc',
    950: '#000000',
  },
}
SCSS
$custom: #af91fc;
$custom-light: #c9b1fe;
$custom-dark: #000000;
JSON
{
  "hex": "#af91fc",
  "rgb": {
    "r": 175,
    "g": 145,
    "b": 252
  },
  "hsl": {
    "h": 256.822,
    "s": 94.69,
    "l": 77.843
  },
  "oklch": {
    "l": 0.72749,
    "c": 0.15333,
    "h": 295.2
  },
  "luminance": 0.36393
}

Semantic roles & 50–950 ramp

primary
#AF91FC
secondary
#EDF6D5
accent
#E600A5
background
#FCFAFF
surface
#F9F5FF
border
#D2CFD7
text
#131118
muted
#828086

Preview Lab

Preview with #AF91FC

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

Preview Lab → · Contrast checker → · Palette generator →

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