#AF3AB6#AF3AB6

#AF3AB6 is a mid, highly saturated purple. Relative luminance 0.155; OKLCH L 56.4% C 0.208 H 325.5°. Best body text is #FFFFFF at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#AF3AB6
RGBrgb(175, 58, 182)
HSLhsl(297, 52%, 47%)
HSVhsv(297, 68%, 71%)
CMYKcmyk(3.8%, 68.1%, 0%, 28.6%)
CIE-LABlab(46.34, 62.55, -42.36)
CIE-LCHlch(46.34, 75.54, 325.89°)
OKLaboklab(56.44% 0.1712 -0.1176)
OKLCHoklch(56.44% 0.208 325.5)
XYZxyz(27.6351, 15.5192, 45.7868)
Luminance0.1552 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF3AB6 #41B63A
analogous
#713AB6 #AF3AB6 #B63A7F
triadic
#AF3AB6 #B6AF3A #3AB6AF
tetradic
#AF3AB6 #B6713A #41B63A #3A7FB6
square
#AF3AB6 #B6713A #41B63A #3A7FB6
split-complementary
#AF3AB6 #7FB63A #3AB671
monochromatic
#561C59 #822B88 #AF3AB6 #C661CD #D78FDB

Accessibility & contrast

On white

5.12
#AF3AB6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#AF3AB6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF3AB6
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF3AB6#FFFFFF#000000##FFFFFF
##AF3AB61.005.124.105.12
#FFFFFF5.121.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F64BA
Deuteranopia (green-blind)
#5373B3
Tritanopia (blue-blind)
#B34D74
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #af3ab6;
/* rgb */ color: rgb(175, 58, 182);
/* oklch */ color: oklch(56.4% 0.208 325.5);
Tailwind
colors: {
  custom: {
    50: '#ca7acc',
    500: '#af3ab6',
    950: '#000000',
  },
}
SCSS
$custom: #af3ab6;
$custom-light: #ca7acc;
$custom-dark: #000000;
JSON
{
  "hex": "#af3ab6",
  "rgb": {
    "r": 175,
    "g": 58,
    "b": 182
  },
  "hsl": {
    "h": 296.613,
    "s": 51.667,
    "l": 47.059
  },
  "oklch": {
    "l": 0.56439,
    "c": 0.20768,
    "h": 325.5
  },
  "luminance": 0.15517
}

Semantic roles & 50–950 ramp

primary
#AF3AB6
secondary
#89C686
accent
#DB4D55
background
#FCF7FC
surface
#F9EEF9
border
#D2C9D2
text
#140A13
muted
#827C82

Preview Lab

Preview with #AF3AB6

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

Preview Lab → · Contrast checker → · Palette generator →

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