#AF3FA4#AF3FA4

#AF3FA4 is a mid, vivid purple. Relative luminance 0.153; OKLCH L 56.0% C 0.187 H 331.9°. Best body text is #FFFFFF at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#AF3FA4
RGBrgb(175, 63, 164)
HSLhsl(306, 47%, 47%)
HSVhsv(306, 64%, 69%)
CMYKcmyk(0%, 64%, 6.3%, 31.4%)
CIE-LABlab(46.11, 57.51, -32.10)
CIE-LCHlch(46.11, 65.86, 330.83°)
OKLaboklab(55.97% 0.1645 -0.088)
OKLCHoklch(55.97% 0.187 331.9)
XYZxyz(26.1575, 15.3513, 36.7002)
Luminance0.1535 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF3FA4 #3FAF4A
analogous
#823FAF #AF3FA4 #AF3F6C
triadic
#AF3FA4 #A4AF3F #3FA4AF
tetradic
#AF3FA4 #AF823F #3FAF4A #3F6CAF
square
#AF3FA4 #AF823F #3FAF4A #3F6CAF
split-complementary
#AF3FA4 #6CAF3F #3FAF82
monochromatic
#551F50 #822F7A #AF3FA4 #C764BD #D791D0

Accessibility & contrast

On white

5.16
#AF3FA4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.07
#AF3FA4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF3FA4
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF3FA4#FFFFFF#000000##FFFFFF
##AF3FA41.005.164.075.16
#FFFFFF5.161.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3963A7
Deuteranopia (green-blind)
#5F73A1
Tritanopia (blue-blind)
#B6496C
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #af3fa4;
/* rgb */ color: rgb(175, 63, 164);
/* oklch */ color: oklch(56.0% 0.187 331.9);
Tailwind
colors: {
  custom: {
    50: '#ca7cbf',
    500: '#af3fa4',
    950: '#000000',
  },
}
SCSS
$custom: #af3fa4;
$custom-light: #ca7cbf;
$custom-dark: #000000;
JSON
{
  "hex": "#af3fa4",
  "rgb": {
    "r": 175,
    "g": 63,
    "b": 164
  },
  "hsl": {
    "h": 305.893,
    "s": 47.059,
    "l": 46.667
  },
  "oklch": {
    "l": 0.55972,
    "c": 0.18656,
    "h": 331.9
  },
  "luminance": 0.15349
}

Semantic roles & 50–950 ramp

primary
#AF3FA4
secondary
#87C38D
accent
#D75E51
background
#FCF7FB
surface
#F9EEF7
border
#D2C9D0
text
#140A12
muted
#827C81

Preview Lab

Preview with #AF3FA4

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

Preview Lab → · Contrast checker → · Palette generator →

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