#AF3AB2#AF3AB2

#AF3AB2 is a mid, highly saturated purple. Relative luminance 0.154; OKLCH L 56.2% C 0.204 H 326.8°. Best body text is #FFFFFF at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#AF3AB2
RGBrgb(175, 58, 178)
HSLhsl(299, 51%, 46%)
HSVhsv(299, 67%, 70%)
CMYKcmyk(1.7%, 67.4%, 0%, 30.2%)
CIE-LABlab(46.12, 61.85, -40.36)
CIE-LCHlch(46.12, 73.86, 326.88°)
OKLaboklab(56.21% 0.1711 -0.1118)
OKLCHoklch(56.21% 0.204 326.8)
XYZxyz(27.2277, 15.3562, 43.6408)
Luminance0.1535 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF3AB2 #3DB23A
analogous
#733AB2 #AF3AB2 #B23A79
triadic
#AF3AB2 #B2AF3A #3AB2AF
tetradic
#AF3AB2 #B2733A #3DB23A #3A79B2
square
#AF3AB2 #B2733A #3DB23A #3A79B2
split-complementary
#AF3AB2 #79B23A #3AB273
monochromatic
#541C56 #822B84 #AF3AB2 #C85FCB #D88DDA

Accessibility & contrast

On white

5.16
#AF3AB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.07
#AF3AB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF3AB2
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF3AB2#FFFFFF#000000##FFFFFF
##AF3AB21.005.164.075.16
#FFFFFF5.161.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2564B5
Deuteranopia (green-blind)
#5672AF
Tritanopia (blue-blind)
#B44C71
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #af3ab2;
/* rgb */ color: rgb(175, 58, 178);
/* oklch */ color: oklch(56.2% 0.204 326.8);
Tailwind
colors: {
  custom: {
    50: '#ca7ac9',
    500: '#af3ab2',
    950: '#000000',
  },
}
SCSS
$custom: #af3ab2;
$custom-light: #ca7ac9;
$custom-dark: #000000;
JSON
{
  "hex": "#af3ab2",
  "rgb": {
    "r": 175,
    "g": 58,
    "b": 178
  },
  "hsl": {
    "h": 298.5,
    "s": 50.847,
    "l": 46.275
  },
  "oklch": {
    "l": 0.56211,
    "c": 0.20439,
    "h": 326.8
  },
  "luminance": 0.15354
}

Semantic roles & 50–950 ramp

primary
#AF3AB2
secondary
#85C483
accent
#DA4D51
background
#FCF7FC
surface
#F9EEF8
border
#D2C9D1
text
#140A13
muted
#827C82

Preview Lab

Preview with #AF3AB2

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

Preview Lab → · Contrast checker → · Palette generator →

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