#AF3FA1#AF3FA1

#AF3FA1 is a mid, vivid purple. Relative luminance 0.152; OKLCH L 55.8% C 0.184 H 333.0°. Best body text is #FFFFFF at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#AF3FA1
RGBrgb(175, 63, 161)
HSLhsl(308, 47%, 47%)
HSVhsv(308, 64%, 69%)
CMYKcmyk(0%, 64%, 8%, 31.4%)
CIE-LABlab(45.97, 57.02, -30.54)
CIE-LCHlch(45.97, 64.68, 331.82°)
OKLaboklab(55.82% 0.1642 -0.0835)
OKLCHoklch(55.82% 0.184 333)
XYZxyz(25.8898, 15.2442, 35.2901)
Luminance0.1524 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF3FA1 #3FAF4D
analogous
#853FAF #AF3FA1 #AF3F69
triadic
#AF3FA1 #A1AF3F #3FA1AF
tetradic
#AF3FA1 #AF853F #3FAF4D #3F69AF
square
#AF3FA1 #AF853F #3FAF4D #3F69AF
split-complementary
#AF3FA1 #69AF3F #3FAF85
monochromatic
#551F4E #822F78 #AF3FA1 #C764BB #D791CF

Accessibility & contrast

On white

5.19
#AF3FA1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#AF3FA1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF3FA1
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF3FA1#FFFFFF#000000##FFFFFF
##AF3FA11.005.194.055.19
#FFFFFF5.191.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C63A4
Deuteranopia (green-blind)
#61739E
Tritanopia (blue-blind)
#B7486A
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #af3fa1;
/* rgb */ color: rgb(175, 63, 161);
/* oklch */ color: oklch(55.8% 0.184 333.0);
Tailwind
colors: {
  custom: {
    50: '#ca7cbd',
    500: '#af3fa1',
    950: '#000000',
  },
}
SCSS
$custom: #af3fa1;
$custom-light: #ca7cbd;
$custom-dark: #000000;
JSON
{
  "hex": "#af3fa1",
  "rgb": {
    "r": 175,
    "g": 63,
    "b": 161
  },
  "hsl": {
    "h": 307.5,
    "s": 47.059,
    "l": 46.667
  },
  "oklch": {
    "l": 0.5582,
    "c": 0.1842,
    "h": 333
  },
  "luminance": 0.15242
}

Semantic roles & 50–950 ramp

primary
#AF3FA1
secondary
#87C38F
accent
#D76251
background
#FCF7FB
surface
#F9EEF6
border
#D2C9D0
text
#140A12
muted
#827C81

Preview Lab

Preview with #AF3FA1

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

Preview Lab → · Contrast checker → · Palette generator →

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