#AF2AB5#AF2AB5

#AF2AB5 is a mid, highly saturated purple. Relative luminance 0.141; OKLCH L 55.0% C 0.224 H 326.2°. Best body text is #FFFFFF at 5.50:1 contrast (WCAG AA passes).

Color values

HEX#AF2AB5
RGBrgb(175, 42, 181)
HSLhsl(297, 62%, 44%)
HSVhsv(297, 77%, 71%)
CMYKcmyk(3.3%, 76.8%, 0%, 29%)
CIE-LABlab(44.39, 67.77, -44.88)
CIE-LCHlch(44.39, 81.28, 326.49°)
OKLaboklab(55.03% 0.1862 -0.1248)
OKLCHoklch(55.03% 0.224 326.2)
XYZxyz(26.8471, 14.1079, 45.0162)
Luminance0.1411 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2AB5 #30B52A
analogous
#692AB5 #AF2AB5 #B52A75
triadic
#AF2AB5 #B5AF2A #2AB5AF
tetradic
#AF2AB5 #B5692A #30B52A #2A75B5
square
#AF2AB5 #B5692A #30B52A #2A75B5
split-complementary
#AF2AB5 #75B52A #2AB569
monochromatic
#4F1352 #7F1E83 #AF2AB5 #CE48D4 #DC79E0

Accessibility & contrast

On white

5.50
#AF2AB5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.82
#AF2AB5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2AB5
5.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2AB5#FFFFFF#000000##FFFFFF
##AF2AB51.005.503.825.50
#FFFFFF5.501.0021.001.00
#0000003.8221.001.0021.00
##FFFFFF5.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EB9
Deuteranopia (green-blind)
#4C6FB2
Tritanopia (blue-blind)
#B4436F
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #af2ab5;
/* rgb */ color: rgb(175, 42, 181);
/* oklch */ color: oklch(55.0% 0.224 326.2);
Tailwind
colors: {
  custom: {
    50: '#cb73cc',
    500: '#af2ab5',
    950: '#000000',
  },
}
SCSS
$custom: #af2ab5;
$custom-light: #cb73cc;
$custom-dark: #000000;
JSON
{
  "hex": "#af2ab5",
  "rgb": {
    "r": 175,
    "g": 42,
    "b": 181
  },
  "hsl": {
    "h": 297.41,
    "s": 62.332,
    "l": 43.725
  },
  "oklch": {
    "l": 0.55027,
    "c": 0.22418,
    "h": 326.2
  },
  "luminance": 0.14106
}

Semantic roles & 50–950 ramp

primary
#AF2AB5
secondary
#76C873
accent
#E54249
background
#FCF7FC
surface
#F9EDF9
border
#D2C8D2
text
#140913
muted
#827B82

Preview Lab

Preview with #AF2AB5

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

Preview Lab → · Contrast checker → · Palette generator →

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