#AF71F7#AF71F7

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

Color values

HEX#AF71F7
RGBrgb(175, 113, 247)
HSLhsl(268, 89%, 71%)
HSVhsv(268, 54%, 97%)
CMYKcmyk(29.1%, 54.3%, 0%, 3.1%)
CIE-LABlab(59.56, 50.15, -58.24)
CIE-LCHlch(59.56, 76.85, 310.73°)
OKLaboklab(67.25% 0.1061 -0.1643)
OKLCHoklch(67.25% 0.196 302.9)
XYZxyz(40.3690, 27.6396, 91.1859)
Luminance0.2764 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF71F7 #B9F771
analogous
#7176F7 #AF71F7 #F271F7
triadic
#AF71F7 #F7AF71 #71F7AF
tetradic
#AF71F7 #F77176 #B9F771 #71F7F2
square
#AF71F7 #F77176 #B9F771 #71F7F2
split-complementary
#AF71F7 #F7F271 #76F771
monochromatic
#6F0DE1 #8E37F4 #AF71F7 #D0ABFA #EFE2FD

Accessibility & contrast

On white

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

On black

6.53
#AF71F7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF71F7
6.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF71F7#FFFFFF#000000##000000
##AF71F71.003.226.536.53
#FFFFFF3.221.0021.0021.00
#0000006.5321.001.001.00
##0000006.5321.001.001.00

Color blindness preview

Protanopia (red-blind)
#3E8EFB
Deuteranopia (green-blind)
#538FF4
Tritanopia (blue-blind)
#A28BA9
Achromatopsia (no color)
#8F8F8F

Design tokens & code

CSS
--color: #af71f7;
/* rgb */ color: rgb(175, 113, 247);
/* oklch */ color: oklch(67.2% 0.196 302.9);
Tailwind
colors: {
  custom: {
    50: '#ca9cfa',
    500: '#af71f7',
    950: '#000000',
  },
}
SCSS
$custom: #af71f7;
$custom-light: #ca9cfa;
$custom-dark: #000000;
JSON
{
  "hex": "#af71f7",
  "rgb": {
    "r": 175,
    "g": 113,
    "b": 247
  },
  "hsl": {
    "h": 267.761,
    "s": 89.333,
    "l": 70.588
  },
  "oklch": {
    "l": 0.67247,
    "c": 0.19559,
    "h": 302.9
  },
  "luminance": 0.2764
}

Semantic roles & 50–950 ramp

primary
#AF71F7
secondary
#E3F4D0
accent
#E6007B
background
#FCF9FF
surface
#F9F2FF
border
#D2CCD7
text
#140E17
muted
#827E85

Preview Lab

Preview with #AF71F7

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

Preview Lab → · Contrast checker → · Palette generator →

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