#AF2AB4#AF2AB4

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

Color values

HEX#AF2AB4
RGBrgb(175, 42, 180)
HSLhsl(298, 62%, 44%)
HSVhsv(298, 77%, 71%)
CMYKcmyk(2.8%, 76.7%, 0%, 29.4%)
CIE-LABlab(44.33, 67.61, -44.38)
CIE-LCHlch(44.33, 80.87, 326.72°)
OKLaboklab(54.97% 0.1863 -0.1234)
OKLCHoklch(54.97% 0.223 326.5)
XYZxyz(26.7449, 14.0670, 44.4777)
Luminance0.1406 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2AB4 #2FB42A
analogous
#6A2AB4 #AF2AB4 #B42A74
triadic
#AF2AB4 #B4AF2A #2AB4AF
tetradic
#AF2AB4 #B46A2A #2FB42A #2A74B4
square
#AF2AB4 #B46A2A #2FB42A #2A74B4
split-complementary
#AF2AB4 #74B42A #2AB46A
monochromatic
#4F1351 #7F1E82 #AF2AB4 #CF47D4 #DC79E0

Accessibility & contrast

On white

5.51
#AF2AB4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.81
#AF2AB4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2AB4
5.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2AB4#FFFFFF#000000##FFFFFF
##AF2AB41.005.513.815.51
#FFFFFF5.511.0021.001.00
#0000003.8121.001.0021.00
##FFFFFF5.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EB8
Deuteranopia (green-blind)
#4D6EB1
Tritanopia (blue-blind)
#B4436E
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #af2ab4;
/* rgb */ color: rgb(175, 42, 180);
/* oklch */ color: oklch(55.0% 0.223 326.5);
Tailwind
colors: {
  custom: {
    50: '#cb73cb',
    500: '#af2ab4',
    950: '#000000',
  },
}
SCSS
$custom: #af2ab4;
$custom-light: #cb73cb;
$custom-dark: #000000;
JSON
{
  "hex": "#af2ab4",
  "rgb": {
    "r": 175,
    "g": 42,
    "b": 180
  },
  "hsl": {
    "h": 297.826,
    "s": 62.162,
    "l": 43.529
  },
  "oklch": {
    "l": 0.54966,
    "c": 0.22342,
    "h": 326.5
  },
  "luminance": 0.14065
}

Semantic roles & 50–950 ramp

primary
#AF2AB4
secondary
#75C872
accent
#E54348
background
#FCF7FC
surface
#F9EDF8
border
#D2C8D1
text
#140913
muted
#827B82

Preview Lab

Preview with #AF2AB4

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

Preview Lab → · Contrast checker → · Palette generator →

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