#AF3AA6#AF3AA6

#AF3AA6 is a mid, vivid purple. Relative luminance 0.149; OKLCH L 55.6% C 0.195 H 331.1°. Best body text is #FFFFFF at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#AF3AA6
RGBrgb(175, 58, 166)
HSLhsl(305, 50%, 46%)
HSVhsv(305, 67%, 69%)
CMYKcmyk(0%, 66.9%, 5.1%, 31.4%)
CIE-LABlab(45.49, 59.84, -34.26)
CIE-LCHlch(45.49, 68.96, 330.21°)
OKLaboklab(55.55% 0.1705 -0.0942)
OKLCHoklch(55.55% 0.195 331.1)
XYZxyz(26.0751, 14.8952, 37.5707)
Luminance0.1489 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF3AA6 #3AAF43
analogous
#7D3AAF #AF3AA6 #AF3A6C
triadic
#AF3AA6 #A6AF3A #3AA6AF
tetradic
#AF3AA6 #AF7D3A #3AAF43 #3A6CAF
square
#AF3AA6 #AF7D3A #3AAF43 #3A6CAF
split-complementary
#AF3AA6 #6CAF3A #3AAF7D
monochromatic
#531C4F #812B7A #AF3AA6 #C95DC1 #D98BD3

Accessibility & contrast

On white

5.28
#AF3AA6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#AF3AA6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF3AA6
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF3AA6#FFFFFF#000000##FFFFFF
##AF3AA61.005.283.985.28
#FFFFFF5.281.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3261A9
Deuteranopia (green-blind)
#5C71A3
Tritanopia (blue-blind)
#B6466B
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #af3aa6;
/* rgb */ color: rgb(175, 58, 166);
/* oklch */ color: oklch(55.6% 0.195 331.1);
Tailwind
colors: {
  custom: {
    50: '#ca7ac1',
    500: '#af3aa6',
    950: '#000000',
  },
}
SCSS
$custom: #af3aa6;
$custom-light: #ca7ac1;
$custom-dark: #000000;
JSON
{
  "hex": "#af3aa6",
  "rgb": {
    "r": 175,
    "g": 58,
    "b": 166
  },
  "hsl": {
    "h": 304.615,
    "s": 50.215,
    "l": 45.686
  },
  "oklch": {
    "l": 0.55554,
    "c": 0.19477,
    "h": 331.1
  },
  "luminance": 0.14893
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF3AA6

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

Preview Lab → · Contrast checker → · Palette generator →

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