#AF71F6#AF71F6

#AF71F6 is a light, vivid violet. Relative luminance 0.276; OKLCH L 67.2% C 0.194 H 303.1°. Best body text is #000000 at 6.52:1 contrast (WCAG AA passes).

Color values

HEX#AF71F6
RGBrgb(175, 113, 246)
HSLhsl(268, 88%, 70%)
HSVhsv(268, 54%, 96%)
CMYKcmyk(28.9%, 54.1%, 0%, 3.5%)
CIE-LABlab(59.51, 49.91, -57.78)
CIE-LCHlch(59.51, 76.35, 310.82°)
OKLaboklab(67.19% 0.1061 -0.163)
OKLCHoklch(67.19% 0.194 303.1)
XYZxyz(40.2151, 27.5781, 90.3754)
Luminance0.2758 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF71F6 #B8F671
analogous
#7175F6 #AF71F6 #F171F6
triadic
#AF71F6 #F6AF71 #71F6AF
tetradic
#AF71F6 #F67175 #B8F671 #71F6F1
square
#AF71F6 #F67175 #B8F671 #71F6F1
split-complementary
#AF71F6 #F6F171 #75F671
monochromatic
#6F0EDE #8F37F2 #AF71F6 #CFABFA #EFE2FD

Accessibility & contrast

On white

3.22
#AF71F6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.52
#AF71F6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF71F6
6.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF71F6#FFFFFF#000000##000000
##AF71F61.003.226.526.52
#FFFFFF3.221.0021.0021.00
#0000006.5221.001.001.00
##0000006.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#3F8EFA
Deuteranopia (green-blind)
#548FF3
Tritanopia (blue-blind)
#A28AA9
Achromatopsia (no color)
#8F8F8F

Design tokens & code

CSS
--color: #af71f6;
/* rgb */ color: rgb(175, 113, 246);
/* oklch */ color: oklch(67.2% 0.194 303.1);
Tailwind
colors: {
  custom: {
    50: '#ca9cfa',
    500: '#af71f6',
    950: '#000000',
  },
}
SCSS
$custom: #af71f6;
$custom-light: #ca9cfa;
$custom-dark: #000000;
JSON
{
  "hex": "#af71f6",
  "rgb": {
    "r": 175,
    "g": 113,
    "b": 246
  },
  "hsl": {
    "h": 267.97,
    "s": 88.079,
    "l": 70.392
  },
  "oklch": {
    "l": 0.67187,
    "c": 0.19443,
    "h": 303.1
  },
  "luminance": 0.27578
}

Semantic roles & 50–950 ramp

primary
#AF71F6
secondary
#E3F4CF
accent
#E5017A
background
#FCF9FF
surface
#F9F2FF
border
#D2CCD7
text
#140E17
muted
#827E85

Preview Lab

Preview with #AF71F6

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

Preview Lab → · Contrast checker → · Palette generator →

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