#AF71E2#AF71E2

#AF71E2 is a light, vivid violet. Relative luminance 0.264; OKLCH L 66.0% C 0.171 H 307.7°. Best body text is #000000 at 6.28:1 contrast (WCAG AA passes).

Color values

HEX#AF71E2
RGBrgb(175, 113, 226)
HSLhsl(273, 66%, 66%)
HSVhsv(273, 50%, 89%)
CMYKcmyk(22.6%, 50%, 0%, 11.4%)
CIE-LABlab(58.43, 45.28, -48.36)
CIE-LCHlch(58.43, 66.25, 313.12°)
OKLaboklab(66.04% 0.1047 -0.1354)
OKLCHoklch(66.04% 0.171 307.7)
XYZxyz(37.3091, 26.4156, 75.0700)
Luminance0.2641 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF71E2 #A4E271
analogous
#7771E2 #AF71E2 #E271DD
triadic
#AF71E2 #E2AF71 #71E2AF
tetradic
#AF71E2 #E27771 #A4E271 #71DDE2
square
#AF71E2 #E27771 #A4E271 #71DDE2
split-complementary
#AF71E2 #DDE271 #71E277
monochromatic
#7325B4 #923ED8 #AF71E2 #CCA4EC #E8D7F7

Accessibility & contrast

On white

3.34
#AF71E2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.28
#AF71E2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF71E2
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF71E2#FFFFFF#000000##000000
##AF71E21.003.346.286.28
#FFFFFF3.341.0021.0021.00
#0000006.2821.001.001.00
##0000006.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#518AE6
Deuteranopia (green-blind)
#648DDF
Tritanopia (blue-blind)
#A8849F
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #af71e2;
/* rgb */ color: rgb(175, 113, 226);
/* oklch */ color: oklch(66.0% 0.171 307.7);
Tailwind
colors: {
  custom: {
    50: '#c99beb',
    500: '#af71e2',
    950: '#000000',
  },
}
SCSS
$custom: #af71e2;
$custom-light: #c99beb;
$custom-dark: #000000;
JSON
{
  "hex": "#af71e2",
  "rgb": {
    "r": 175,
    "g": 113,
    "b": 226
  },
  "hsl": {
    "h": 272.92,
    "s": 66.082,
    "l": 66.471
  },
  "oklch": {
    "l": 0.66043,
    "c": 0.17118,
    "h": 307.7
  },
  "luminance": 0.26415
}

Semantic roles & 50–950 ramp

primary
#AF71E2
secondary
#D6EAC5
accent
#CE186A
background
#FCF9FE
surface
#F9F2FD
border
#D2CCD5
text
#130E16
muted
#827E84

Preview Lab

Preview with #AF71E2

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

Preview Lab → · Contrast checker → · Palette generator →

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