#AF71FC#AF71FC

#AF71FC is a light, highly saturated violet. Relative luminance 0.280; OKLCH L 67.5% C 0.201 H 301.8°. Best body text is #000000 at 6.59:1 contrast (WCAG AA passes).

Color values

HEX#AF71FC
RGBrgb(175, 113, 252)
HSLhsl(267, 96%, 72%)
HSVhsv(267, 55%, 99%)
CMYKcmyk(30.6%, 55.2%, 0%, 1.2%)
CIE-LABlab(59.85, 51.33, -60.55)
CIE-LCHlch(59.85, 79.38, 310.29°)
OKLaboklab(67.55% 0.1063 -0.1711)
OKLCHoklch(67.55% 0.201 301.8)
XYZxyz(41.1509, 27.9524, 95.3040)
Luminance0.2795 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF71FC #BEFC71
analogous
#7179FC #AF71FC #F571FC
triadic
#AF71FC #FCAF71 #71FCAF
tetradic
#AF71FC #FC7179 #BEFC71 #71FCF5
square
#AF71FC #FC7179 #BEFC71 #71FCF5
split-complementary
#AF71FC #FCF571 #79FC71
monochromatic
#6D05EE #8D35FB #AF71FC #D1ADFD #EEE1FE

Accessibility & contrast

On white

3.19
#AF71FC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.59
#AF71FC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF71FC
6.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF71FC#FFFFFF#000000##000000
##AF71FC1.003.196.596.59
#FFFFFF3.191.0021.0021.00
#0000006.5921.001.001.00
##0000006.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#388FFF
Deuteranopia (green-blind)
#4F90F9
Tritanopia (blue-blind)
#A08CAC
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #af71fc;
/* rgb */ color: rgb(175, 113, 252);
/* oklch */ color: oklch(67.5% 0.201 301.8);
Tailwind
colors: {
  custom: {
    50: '#cb9cfe',
    500: '#af71fc',
    950: '#000000',
  },
}
SCSS
$custom: #af71fc;
$custom-light: #cb9cfe;
$custom-dark: #000000;
JSON
{
  "hex": "#af71fc",
  "rgb": {
    "r": 175,
    "g": 113,
    "b": 252
  },
  "hsl": {
    "h": 266.763,
    "s": 95.862,
    "l": 71.569
  },
  "oklch": {
    "l": 0.67547,
    "c": 0.20139,
    "h": 301.8
  },
  "luminance": 0.27952
}

Semantic roles & 50–950 ramp

primary
#AF71FC
secondary
#E6F6D3
accent
#E6007F
background
#FCF9FF
surface
#F9F2FF
border
#D2CCD7
text
#140E18
muted
#827E86

Preview Lab

Preview with #AF71FC

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

Preview Lab → · Contrast checker → · Palette generator →

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