#AF71FA#AF71FA

#AF71FA is a light, vivid violet. Relative luminance 0.278; OKLCH L 67.4% C 0.199 H 302.2°. Best body text is #000000 at 6.57:1 contrast (WCAG AA passes).

Color values

HEX#AF71FA
RGBrgb(175, 113, 250)
HSLhsl(267, 93%, 71%)
HSVhsv(267, 55%, 98%)
CMYKcmyk(30%, 54.8%, 0%, 2%)
CIE-LABlab(59.73, 50.86, -59.63)
CIE-LCHlch(59.73, 78.37, 310.46°)
OKLaboklab(67.43% 0.1062 -0.1684)
OKLCHoklch(67.43% 0.199 302.2)
XYZxyz(40.8357, 27.8263, 93.6436)
Luminance0.2783 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF71FA #BCFA71
analogous
#7177FA #AF71FA #F371FA
triadic
#AF71FA #FAAF71 #71FAAF
tetradic
#AF71FA #FA7177 #BCFA71 #71FAF3
square
#AF71FA #FA7177 #BCFA71 #71FAF3
split-complementary
#AF71FA #FAF371 #77FA71
monochromatic
#6E08E8 #8E36F8 #AF71FA #D0ACFC #EEE1FE

Accessibility & contrast

On white

3.20
#AF71FA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.57
#AF71FA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF71FA
6.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF71FA#FFFFFF#000000##000000
##AF71FA1.003.206.576.57
#FFFFFF3.201.0021.0021.00
#0000006.5721.001.001.00
##0000006.5721.001.001.00

Color blindness preview

Protanopia (red-blind)
#3B8FFF
Deuteranopia (green-blind)
#518FF7
Tritanopia (blue-blind)
#A18CAB
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #af71fa;
/* rgb */ color: rgb(175, 113, 250);
/* oklch */ color: oklch(67.4% 0.199 302.2);
Tailwind
colors: {
  custom: {
    50: '#cb9cfd',
    500: '#af71fa',
    950: '#000000',
  },
}
SCSS
$custom: #af71fa;
$custom-light: #cb9cfd;
$custom-dark: #000000;
JSON
{
  "hex": "#af71fa",
  "rgb": {
    "r": 175,
    "g": 113,
    "b": 250
  },
  "hsl": {
    "h": 267.153,
    "s": 93.197,
    "l": 71.176
  },
  "oklch": {
    "l": 0.67426,
    "c": 0.19907,
    "h": 302.2
  },
  "luminance": 0.27826
}

Semantic roles & 50–950 ramp

primary
#AF71FA
secondary
#E5F5D1
accent
#E6007E
background
#FCF9FF
surface
#F9F2FF
border
#D2CCD7
text
#140E18
muted
#827E86

Preview Lab

Preview with #AF71FA

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

Preview Lab → · Contrast checker → · Palette generator →

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