#AF3FA9#AF3FA9

#AF3FA9 is a mid, vivid purple. Relative luminance 0.155; OKLCH L 56.2% C 0.191 H 330.0°. Best body text is #FFFFFF at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#AF3FA9
RGBrgb(175, 63, 169)
HSLhsl(303, 47%, 47%)
HSVhsv(303, 64%, 69%)
CMYKcmyk(0%, 64%, 3.4%, 31.4%)
CIE-LABlab(46.36, 58.34, -34.67)
CIE-LCHlch(46.36, 67.86, 329.28°)
OKLaboklab(56.23% 0.165 -0.0954)
OKLCHoklch(56.23% 0.191 330)
XYZxyz(26.6180, 15.5354, 39.1251)
Luminance0.1553 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF3FA9 #3FAF45
analogous
#7D3FAF #AF3FA9 #AF3F71
triadic
#AF3FA9 #A9AF3F #3FA9AF
tetradic
#AF3FA9 #AF7D3F #3FAF45 #3F71AF
square
#AF3FA9 #AF7D3F #3FAF45 #3F71AF
split-complementary
#AF3FA9 #71AF3F #3FAF7D
monochromatic
#551F52 #822F7E #AF3FA9 #C764C2 #D791D4

Accessibility & contrast

On white

5.11
#AF3FA9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.11
#AF3FA9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF3FA9
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF3FA9#FFFFFF#000000##FFFFFF
##AF3FA91.005.114.115.11
#FFFFFF5.111.0021.001.00
#0000004.1121.001.0021.00
##FFFFFF5.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3664AC
Deuteranopia (green-blind)
#5D73A6
Tritanopia (blue-blind)
#B54B6E
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #af3fa9;
/* rgb */ color: rgb(175, 63, 169);
/* oklch */ color: oklch(56.2% 0.191 330.0);
Tailwind
colors: {
  custom: {
    50: '#ca7cc3',
    500: '#af3fa9',
    950: '#000000',
  },
}
SCSS
$custom: #af3fa9;
$custom-light: #ca7cc3;
$custom-dark: #000000;
JSON
{
  "hex": "#af3fa9",
  "rgb": {
    "r": 175,
    "g": 63,
    "b": 169
  },
  "hsl": {
    "h": 303.214,
    "s": 47.059,
    "l": 46.667
  },
  "oklch": {
    "l": 0.56233,
    "c": 0.19058,
    "h": 330
  },
  "luminance": 0.15534
}

Semantic roles & 50–950 ramp

primary
#AF3FA9
secondary
#87C38A
accent
#D75851
background
#FCF7FC
surface
#F9EEF8
border
#D2C9D1
text
#140A12
muted
#827C81

Preview Lab

Preview with #AF3FA9

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

Preview Lab → · Contrast checker → · Palette generator →

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