#AF2AB3#AF2AB3

#AF2AB3 is a mid, highly saturated purple. Relative luminance 0.140; OKLCH L 54.9% C 0.223 H 326.8°. Best body text is #FFFFFF at 5.52:1 contrast (WCAG AA passes).

Color values

HEX#AF2AB3
RGBrgb(175, 42, 179)
HSLhsl(298, 62%, 43%)
HSVhsv(298, 77%, 70%)
CMYKcmyk(2.2%, 76.5%, 0%, 29.8%)
CIE-LABlab(44.27, 67.44, -43.88)
CIE-LCHlch(44.27, 80.46, 326.95°)
OKLaboklab(54.91% 0.1863 -0.122)
OKLCHoklch(54.91% 0.223 326.8)
XYZxyz(26.6434, 14.0264, 43.9432)
Luminance0.1403 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2AB3 #2EB32A
analogous
#6A2AB3 #AF2AB3 #B32A72
triadic
#AF2AB3 #B3AF2A #2AB3AF
tetradic
#AF2AB3 #B36A2A #2EB32A #2A72B3
square
#AF2AB3 #B36A2A #2EB32A #2A72B3
split-complementary
#AF2AB3 #72B32A #2AB36A
monochromatic
#4E1350 #7F1E81 #AF2AB3 #D046D4 #DC78DF

Accessibility & contrast

On white

5.52
#AF2AB3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AF2AB3
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2AB3#FFFFFF#000000##FFFFFF
##AF2AB31.005.523.815.52
#FFFFFF5.521.0021.001.00
#0000003.8121.001.0021.00
##FFFFFF5.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EB7
Deuteranopia (green-blind)
#4D6EB0
Tritanopia (blue-blind)
#B4426E
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #af2ab3;
/* rgb */ color: rgb(175, 42, 179);
/* oklch */ color: oklch(54.9% 0.223 326.8);
Tailwind
colors: {
  custom: {
    50: '#cb73ca',
    500: '#af2ab3',
    950: '#000000',
  },
}
SCSS
$custom: #af2ab3;
$custom-light: #cb73ca;
$custom-dark: #000000;
JSON
{
  "hex": "#af2ab3",
  "rgb": {
    "r": 175,
    "g": 42,
    "b": 179
  },
  "hsl": {
    "h": 298.248,
    "s": 61.991,
    "l": 43.333
  },
  "oklch": {
    "l": 0.54906,
    "c": 0.22266,
    "h": 326.8
  },
  "luminance": 0.14025
}

Semantic roles & 50–950 ramp

primary
#AF2AB3
secondary
#74C772
accent
#E54347
background
#FCF7FC
surface
#F9EDF8
border
#D2C8D1
text
#140913
muted
#827B82

Preview Lab

Preview with #AF2AB3

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

Preview Lab → · Contrast checker → · Palette generator →

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