#AF71F5#AF71F5

#AF71F5 is a light, vivid violet. Relative luminance 0.275; OKLCH L 67.1% C 0.193 H 303.3°. Best body text is #000000 at 6.50:1 contrast (WCAG AA passes).

Color values

HEX#AF71F5
RGBrgb(175, 113, 245)
HSLhsl(268, 87%, 70%)
HSVhsv(268, 54%, 96%)
CMYKcmyk(28.6%, 53.9%, 0%, 3.9%)
CIE-LABlab(59.45, 49.67, -57.31)
CIE-LCHlch(59.45, 75.84, 310.92°)
OKLaboklab(67.13% 0.106 -0.1616)
OKLCHoklch(67.13% 0.193 303.3)
XYZxyz(40.0621, 27.5168, 89.5692)
Luminance0.2752 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF71F5 #B7F571
analogous
#7175F5 #AF71F5 #F171F5
triadic
#AF71F5 #F5AF71 #71F5AF
tetradic
#AF71F5 #F57175 #B7F571 #71F5F1
square
#AF71F5 #F57175 #B7F571 #71F5F1
split-complementary
#AF71F5 #F5F171 #75F571
monochromatic
#7010DC #8F38F1 #AF71F5 #CFAAF9 #EFE2FD

Accessibility & contrast

On white

3.23
#AF71F5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.50
#AF71F5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF71F5
6.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF71F5#FFFFFF#000000##000000
##AF71F51.003.236.506.50
#FFFFFF3.231.0021.0021.00
#0000006.5021.001.001.00
##0000006.5021.001.001.00

Color blindness preview

Protanopia (red-blind)
#408EF9
Deuteranopia (green-blind)
#558FF2
Tritanopia (blue-blind)
#A28AA8
Achromatopsia (no color)
#8F8F8F

Design tokens & code

CSS
--color: #af71f5;
/* rgb */ color: rgb(175, 113, 245);
/* oklch */ color: oklch(67.1% 0.193 303.3);
Tailwind
colors: {
  custom: {
    50: '#ca9cf9',
    500: '#af71f5',
    950: '#000000',
  },
}
SCSS
$custom: #af71f5;
$custom-light: #ca9cf9;
$custom-dark: #000000;
JSON
{
  "hex": "#af71f5",
  "rgb": {
    "r": 175,
    "g": 113,
    "b": 245
  },
  "hsl": {
    "h": 268.182,
    "s": 86.842,
    "l": 70.196
  },
  "oklch": {
    "l": 0.67128,
    "c": 0.19327,
    "h": 303.3
  },
  "luminance": 0.27517
}

Semantic roles & 50–950 ramp

primary
#AF71F5
secondary
#E2F3CF
accent
#E3027A
background
#FCF9FF
surface
#F9F2FF
border
#D2CCD7
text
#140E17
muted
#827E85

Preview Lab

Preview with #AF71F5

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

Preview Lab → · Contrast checker → · Palette generator →

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