#AF3AA5#AF3AA5

#AF3AA5 is a mid, vivid purple. Relative luminance 0.149; OKLCH L 55.5% C 0.194 H 331.5°. Best body text is #FFFFFF at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#AF3AA5
RGBrgb(175, 58, 165)
HSLhsl(305, 50%, 46%)
HSVhsv(305, 67%, 69%)
CMYKcmyk(0%, 66.9%, 5.7%, 31.4%)
CIE-LABlab(45.44, 59.68, -33.75)
CIE-LCHlch(45.44, 68.56, 330.51°)
OKLaboklab(55.5% 0.1704 -0.0927)
OKLCHoklch(55.5% 0.194 331.5)
XYZxyz(25.9837, 14.8587, 37.0895)
Luminance0.1486 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF3AA5 #3AAF44
analogous
#7E3AAF #AF3AA5 #AF3A6A
triadic
#AF3AA5 #A5AF3A #3AA5AF
tetradic
#AF3AA5 #AF7E3A #3AAF44 #3A6AAF
square
#AF3AA5 #AF7E3A #3AAF44 #3A6AAF
split-complementary
#AF3AA5 #6AAF3A #3AAF7E
monochromatic
#531C4E #812B7A #AF3AA5 #C95DC0 #D98BD2

Accessibility & contrast

On white

5.29
#AF3AA5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.97
#AF3AA5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF3AA5
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF3AA5#FFFFFF#000000##FFFFFF
##AF3AA51.005.293.975.29
#FFFFFF5.291.0021.001.00
#0000003.9721.001.0021.00
##FFFFFF5.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3361A8
Deuteranopia (green-blind)
#5C71A2
Tritanopia (blue-blind)
#B6466B
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #af3aa5;
/* rgb */ color: rgb(175, 58, 165);
/* oklch */ color: oklch(55.5% 0.194 331.5);
Tailwind
colors: {
  custom: {
    50: '#ca7ac0',
    500: '#af3aa5',
    950: '#000000',
  },
}
SCSS
$custom: #af3aa5;
$custom-light: #ca7ac0;
$custom-dark: #000000;
JSON
{
  "hex": "#af3aa5",
  "rgb": {
    "r": 175,
    "g": 58,
    "b": 165
  },
  "hsl": {
    "h": 305.128,
    "s": 50.215,
    "l": 45.686
  },
  "oklch": {
    "l": 0.55501,
    "c": 0.19399,
    "h": 331.5
  },
  "luminance": 0.14857
}

Semantic roles & 50–950 ramp

primary
#AF3AA5
secondary
#82C387
accent
#DA5A4E
background
#FCF7FB
surface
#F9EEF7
border
#D2C9D0
text
#140A12
muted
#827C81

Preview Lab

Preview with #AF3AA5

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

Preview Lab → · Contrast checker → · Palette generator →

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