#AF71F8#AF71F8

#AF71F8 is a light, vivid violet. Relative luminance 0.277; OKLCH L 67.3% C 0.197 H 302.6°. Best body text is #000000 at 6.54:1 contrast (WCAG AA passes).

Color values

HEX#AF71F8
RGBrgb(175, 113, 248)
HSLhsl(268, 91%, 71%)
HSVhsv(268, 54%, 97%)
CMYKcmyk(29.4%, 54.4%, 0%, 2.7%)
CIE-LABlab(59.62, 50.38, -58.70)
CIE-LCHlch(59.62, 77.36, 310.64°)
OKLaboklab(67.31% 0.1061 -0.1657)
OKLCHoklch(67.31% 0.197 302.6)
XYZxyz(40.5238, 27.7015, 92.0008)
Luminance0.2770 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF71F8 #BAF871
analogous
#7176F8 #AF71F8 #F371F8
triadic
#AF71F8 #F8AF71 #71F8AF
tetradic
#AF71F8 #F87176 #BAF871 #71F8F3
square
#AF71F8 #F87176 #BAF871 #71F8F3
split-complementary
#AF71F8 #F8F371 #76F871
monochromatic
#6E0BE3 #8E37F5 #AF71F8 #D0ABFB #EFE2FE

Accessibility & contrast

On white

3.21
#AF71F8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.54
#AF71F8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF71F8
6.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF71F8#FFFFFF#000000##000000
##AF71F81.003.216.546.54
#FFFFFF3.211.0021.0021.00
#0000006.5421.001.001.00
##0000006.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#3D8EFD
Deuteranopia (green-blind)
#538FF5
Tritanopia (blue-blind)
#A18BAA
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #af71f8;
/* rgb */ color: rgb(175, 113, 248);
/* oklch */ color: oklch(67.3% 0.197 302.6);
Tailwind
colors: {
  custom: {
    50: '#ca9cfb',
    500: '#af71f8',
    950: '#000000',
  },
}
SCSS
$custom: #af71f8;
$custom-light: #ca9cfb;
$custom-dark: #000000;
JSON
{
  "hex": "#af71f8",
  "rgb": {
    "r": 175,
    "g": 113,
    "b": 248
  },
  "hsl": {
    "h": 267.556,
    "s": 90.604,
    "l": 70.784
  },
  "oklch": {
    "l": 0.67306,
    "c": 0.19675,
    "h": 302.6
  },
  "luminance": 0.27702
}

Semantic roles & 50–950 ramp

primary
#AF71F8
secondary
#E4F5D0
accent
#E6007C
background
#FCF9FF
surface
#F9F2FF
border
#D2CCD7
text
#140E17
muted
#827E85

Preview Lab

Preview with #AF71F8

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

Preview Lab → · Contrast checker → · Palette generator →

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