#AF71EA#AF71EA

#AF71EA is a light, vivid violet. Relative luminance 0.269; OKLCH L 66.5% C 0.180 H 305.7°. Best body text is #000000 at 6.37:1 contrast (WCAG AA passes).

Color values

HEX#AF71EA
RGBrgb(175, 113, 234)
HSLhsl(271, 74%, 68%)
HSVhsv(271, 52%, 92%)
CMYKcmyk(25.2%, 51.7%, 0%, 8.2%)
CIE-LABlab(58.85, 47.11, -52.16)
CIE-LCHlch(58.85, 70.28, 312.09°)
OKLaboklab(66.49% 0.1054 -0.1465)
OKLCHoklch(66.49% 0.18 305.7)
XYZxyz(38.4325, 26.8650, 80.9867)
Luminance0.2686 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF71EA #ACEA71
analogous
#7271EA #AF71EA #EA71E8
triadic
#AF71EA #EAAF71 #71EAAF
tetradic
#AF71EA #EA7271 #ACEA71 #71E8EA
square
#AF71EA #EA7271 #ACEA71 #71E8EA
split-complementary
#AF71EA #E8EA71 #71EA72
monochromatic
#721DC4 #913CE2 #AF71EA #CDA6F2 #EBDCFA

Accessibility & contrast

On white

3.30
#AF71EA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.37
#AF71EA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF71EA
6.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF71EA#FFFFFF#000000##000000
##AF71EA1.003.306.376.37
#FFFFFF3.301.0021.0021.00
#0000006.3721.001.001.00
##0000006.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#4B8CEE
Deuteranopia (green-blind)
#5E8EE7
Tritanopia (blue-blind)
#A587A3
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #af71ea;
/* rgb */ color: rgb(175, 113, 234);
/* oklch */ color: oklch(66.5% 0.180 305.7);
Tailwind
colors: {
  custom: {
    50: '#ca9bf1',
    500: '#af71ea',
    950: '#000000',
  },
}
SCSS
$custom: #af71ea;
$custom-light: #ca9bf1;
$custom-dark: #000000;
JSON
{
  "hex": "#af71ea",
  "rgb": {
    "r": 175,
    "g": 113,
    "b": 234
  },
  "hsl": {
    "h": 270.744,
    "s": 74.233,
    "l": 68.039
  },
  "oklch": {
    "l": 0.6649,
    "c": 0.18048,
    "h": 305.7
  },
  "luminance": 0.26865
}

Semantic roles & 50–950 ramp

primary
#AF71EA
secondary
#DBEEC9
accent
#D60F70
background
#FCF9FE
surface
#F9F2FD
border
#D2CCD5
text
#130E17
muted
#827E85

Preview Lab

Preview with #AF71EA

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

Preview Lab → · Contrast checker → · Palette generator →

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