#AF3AA2#AF3AA2

#AF3AA2 is a mid, vivid purple. Relative luminance 0.147; OKLCH L 55.3% C 0.192 H 332.6°. Best body text is #FFFFFF at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#AF3AA2
RGBrgb(175, 58, 162)
HSLhsl(307, 50%, 46%)
HSVhsv(307, 67%, 69%)
CMYKcmyk(0%, 66.9%, 7.4%, 31.4%)
CIE-LABlab(45.29, 59.20, -32.20)
CIE-LCHlch(45.29, 67.38, 331.46°)
OKLaboklab(55.35% 0.1702 -0.0882)
OKLCHoklch(55.35% 0.192 332.6)
XYZxyz(25.7139, 14.7507, 35.6683)
Luminance0.1475 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF3AA2 #3AAF47
analogous
#813AAF #AF3AA2 #AF3A67
triadic
#AF3AA2 #A2AF3A #3AA2AF
tetradic
#AF3AA2 #AF813A #3AAF47 #3A67AF
square
#AF3AA2 #AF813A #3AAF47 #3A67AF
split-complementary
#AF3AA2 #67AF3A #3AAF81
monochromatic
#531C4D #812B77 #AF3AA2 #C95DBD #D98BD0

Accessibility & contrast

On white

5.32
#AF3AA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.95
#AF3AA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF3AA2
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF3AA2#FFFFFF#000000##FFFFFF
##AF3AA21.005.323.955.32
#FFFFFF5.321.0021.001.00
#0000003.9521.001.0021.00
##FFFFFF5.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3560A5
Deuteranopia (green-blind)
#5E719F
Tritanopia (blue-blind)
#B64569
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #af3aa2;
/* rgb */ color: rgb(175, 58, 162);
/* oklch */ color: oklch(55.3% 0.192 332.6);
Tailwind
colors: {
  custom: {
    50: '#ca79be',
    500: '#af3aa2',
    950: '#000000',
  },
}
SCSS
$custom: #af3aa2;
$custom-light: #ca79be;
$custom-dark: #000000;
JSON
{
  "hex": "#af3aa2",
  "rgb": {
    "r": 175,
    "g": 58,
    "b": 162
  },
  "hsl": {
    "h": 306.667,
    "s": 50.215,
    "l": 45.686
  },
  "oklch": {
    "l": 0.55345,
    "c": 0.19167,
    "h": 332.6
  },
  "luminance": 0.14749
}

Semantic roles & 50–950 ramp

primary
#AF3AA2
secondary
#82C389
accent
#DA5E4E
background
#FCF7FB
surface
#F9EEF6
border
#D2C9D0
text
#140A12
muted
#827C81

Preview Lab

Preview with #AF3AA2

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

Preview Lab → · Contrast checker → · Palette generator →

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