#AF2AB8#AF2AB8

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

Color values

HEX#AF2AB8
RGBrgb(175, 42, 184)
HSLhsl(296, 63%, 44%)
HSVhsv(296, 77%, 72%)
CMYKcmyk(4.9%, 77.2%, 0%, 27.8%)
CIE-LABlab(44.56, 68.27, -46.36)
CIE-LCHlch(44.56, 82.52, 325.82°)
OKLaboklab(55.21% 0.186 -0.1292)
OKLCHoklch(55.21% 0.226 325.2)
XYZxyz(27.1583, 14.2324, 46.6548)
Luminance0.1423 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2AB8 #33B82A
analogous
#682AB8 #AF2AB8 #B82A7A
triadic
#AF2AB8 #B8AF2A #2AB8AF
tetradic
#AF2AB8 #B8682A #33B82A #2A7AB8
square
#AF2AB8 #B8682A #33B82A #2A7AB8
split-complementary
#AF2AB8 #7AB82A #2AB868
monochromatic
#501354 #801F86 #AF2AB8 #CD4AD6 #DB7BE1

Accessibility & contrast

On white

5.46
#AF2AB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.85
#AF2AB8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2AB8
5.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2AB8#FFFFFF#000000##FFFFFF
##AF2AB81.005.463.855.46
#FFFFFF5.461.0021.001.00
#0000003.8521.001.0021.00
##FFFFFF5.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FBC
Deuteranopia (green-blind)
#4A6FB5
Tritanopia (blue-blind)
#B34571
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #af2ab8;
/* rgb */ color: rgb(175, 42, 184);
/* oklch */ color: oklch(55.2% 0.226 325.2);
Tailwind
colors: {
  custom: {
    50: '#cb73ce',
    500: '#af2ab8',
    950: '#000000',
  },
}
SCSS
$custom: #af2ab8;
$custom-light: #cb73ce;
$custom-dark: #000000;
JSON
{
  "hex": "#af2ab8",
  "rgb": {
    "r": 175,
    "g": 42,
    "b": 184
  },
  "hsl": {
    "h": 296.197,
    "s": 62.832,
    "l": 44.314
  },
  "oklch": {
    "l": 0.55209,
    "c": 0.22648,
    "h": 325.2
  },
  "luminance": 0.14231
}

Semantic roles & 50–950 ramp

primary
#AF2AB8
secondary
#7AC975
accent
#E6424C
background
#FDF7FC
surface
#FAEDF9
border
#D3C8D2
text
#140914
muted
#837B82

Preview Lab

Preview with #AF2AB8

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

Preview Lab → · Contrast checker → · Palette generator →

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