#AF71F2#AF71F2

#AF71F2 is a light, vivid violet. Relative luminance 0.273; OKLCH L 67.0% C 0.190 H 303.9°. Best body text is #000000 at 6.47:1 contrast (WCAG AA passes).

Color values

HEX#AF71F2
RGBrgb(175, 113, 242)
HSLhsl(269, 83%, 70%)
HSVhsv(269, 53%, 95%)
CMYKcmyk(27.7%, 53.3%, 0%, 5.1%)
CIE-LABlab(59.28, 48.97, -55.91)
CIE-LCHlch(59.28, 74.33, 311.21°)
OKLaboklab(66.95% 0.1059 -0.1575)
OKLCHoklch(66.95% 0.19 303.9)
XYZxyz(39.6078, 27.3351, 87.1768)
Luminance0.2733 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF71F2 #B4F271
analogous
#7174F2 #AF71F2 #EF71F2
triadic
#AF71F2 #F2AF71 #71F2AF
tetradic
#AF71F2 #F27174 #B4F271 #71F2EF
square
#AF71F2 #F27174 #B4F271 #71F2EF
split-complementary
#AF71F2 #F2EF71 #74F271
monochromatic
#7114D5 #8F39ED #AF71F2 #CFA9F7 #EEE1FC

Accessibility & contrast

On white

3.25
#AF71F2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.47
#AF71F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF71F2
6.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF71F2#FFFFFF#000000##000000
##AF71F21.003.256.476.47
#FFFFFF3.251.0021.0021.00
#0000006.4721.001.001.00
##0000006.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#448DF6
Deuteranopia (green-blind)
#588FEF
Tritanopia (blue-blind)
#A389A7
Achromatopsia (no color)
#8F8F8F

Design tokens & code

CSS
--color: #af71f2;
/* rgb */ color: rgb(175, 113, 242);
/* oklch */ color: oklch(67.0% 0.190 303.9);
Tailwind
colors: {
  custom: {
    50: '#ca9cf7',
    500: '#af71f2',
    950: '#000000',
  },
}
SCSS
$custom: #af71f2;
$custom-light: #ca9cf7;
$custom-dark: #000000;
JSON
{
  "hex": "#af71f2",
  "rgb": {
    "r": 175,
    "g": 113,
    "b": 242
  },
  "hsl": {
    "h": 268.837,
    "s": 83.226,
    "l": 69.608
  },
  "oklch": {
    "l": 0.66951,
    "c": 0.18978,
    "h": 303.9
  },
  "luminance": 0.27335
}

Semantic roles & 50–950 ramp

primary
#AF71F2
secondary
#E0F2CD
accent
#E00677
background
#FCF9FF
surface
#F9F2FF
border
#D2CCD7
text
#140E17
muted
#827E85

Preview Lab

Preview with #AF71F2

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

Preview Lab → · Contrast checker → · Palette generator →

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