#AF2AB7#AF2AB7

#AF2AB7 is a mid, highly saturated purple. Relative luminance 0.142; OKLCH L 55.1% C 0.226 H 325.5°. Best body text is #FFFFFF at 5.47:1 contrast (WCAG AA passes).

Color values

HEX#AF2AB7
RGBrgb(175, 42, 183)
HSLhsl(297, 63%, 44%)
HSVhsv(297, 77%, 72%)
CMYKcmyk(4.4%, 77%, 0%, 28.2%)
CIE-LABlab(44.51, 68.10, -45.87)
CIE-LCHlch(44.51, 82.11, 326.04°)
OKLaboklab(55.15% 0.1861 -0.1277)
OKLCHoklch(55.15% 0.226 325.5)
XYZxyz(27.0538, 14.1906, 46.1047)
Luminance0.1419 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2AB7 #32B72A
analogous
#692AB7 #AF2AB7 #B72A79
triadic
#AF2AB7 #B7AF2A #2AB7AF
tetradic
#AF2AB7 #B7692A #32B72A #2A79B7
square
#AF2AB7 #B7692A #32B72A #2A79B7
split-complementary
#AF2AB7 #79B72A #2AB769
monochromatic
#501353 #7F1F85 #AF2AB7 #CD49D5 #DB7BE1

Accessibility & contrast

On white

5.47
#AF2AB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.84
#AF2AB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2AB7
5.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2AB7#FFFFFF#000000##FFFFFF
##AF2AB71.005.473.845.47
#FFFFFF5.471.0021.001.00
#0000003.8421.001.0021.00
##FFFFFF5.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FBB
Deuteranopia (green-blind)
#4B6FB4
Tritanopia (blue-blind)
#B34470
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #af2ab7;
/* rgb */ color: rgb(175, 42, 183);
/* oklch */ color: oklch(55.1% 0.226 325.5);
Tailwind
colors: {
  custom: {
    50: '#cb73cd',
    500: '#af2ab7',
    950: '#000000',
  },
}
SCSS
$custom: #af2ab7;
$custom-light: #cb73cd;
$custom-dark: #000000;
JSON
{
  "hex": "#af2ab7",
  "rgb": {
    "r": 175,
    "g": 42,
    "b": 183
  },
  "hsl": {
    "h": 296.596,
    "s": 62.667,
    "l": 44.118
  },
  "oklch": {
    "l": 0.55148,
    "c": 0.22571,
    "h": 325.5
  },
  "luminance": 0.14189
}

Semantic roles & 50–950 ramp

primary
#AF2AB7
secondary
#79C974
accent
#E6424B
background
#FDF7FC
surface
#FAEDF9
border
#D3C8D2
text
#140913
muted
#837B82

Preview Lab

Preview with #AF2AB7

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

Preview Lab → · Contrast checker → · Palette generator →

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