#AF2AB2#AF2AB2

#AF2AB2 is a mid, highly saturated purple. Relative luminance 0.140; OKLCH L 54.8% C 0.222 H 327.1°. Best body text is #FFFFFF at 5.53:1 contrast (WCAG AA passes).

Color values

HEX#AF2AB2
RGBrgb(175, 42, 178)
HSLhsl(299, 62%, 43%)
HSVhsv(299, 76%, 70%)
CMYKcmyk(1.7%, 76.4%, 0%, 30.2%)
CIE-LABlab(44.21, 67.28, -43.39)
CIE-LCHlch(44.21, 80.06, 327.18°)
OKLaboklab(54.85% 0.1863 -0.1205)
OKLCHoklch(54.85% 0.222 327.1)
XYZxyz(26.5426, 13.9861, 43.4124)
Luminance0.1398 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2AB2 #2DB22A
analogous
#6B2AB2 #AF2AB2 #B22A71
triadic
#AF2AB2 #B2AF2A #2AB2AF
tetradic
#AF2AB2 #B26B2A #2DB22A #2A71B2
square
#AF2AB2 #B26B2A #2DB22A #2A71B2
split-complementary
#AF2AB2 #71B22A #2AB26B
monochromatic
#4E134F #7E1E80 #AF2AB2 #D046D3 #DD77DF

Accessibility & contrast

On white

5.53
#AF2AB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.80
#AF2AB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2AB2
5.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2AB2#FFFFFF#000000##FFFFFF
##AF2AB21.005.533.805.53
#FFFFFF5.531.0021.001.00
#0000003.8021.001.0021.00
##FFFFFF5.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EB6
Deuteranopia (green-blind)
#4E6EAF
Tritanopia (blue-blind)
#B4416D
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #af2ab2;
/* rgb */ color: rgb(175, 42, 178);
/* oklch */ color: oklch(54.8% 0.222 327.1);
Tailwind
colors: {
  custom: {
    50: '#cb73c9',
    500: '#af2ab2',
    950: '#000000',
  },
}
SCSS
$custom: #af2ab2;
$custom-light: #cb73c9;
$custom-dark: #000000;
JSON
{
  "hex": "#af2ab2",
  "rgb": {
    "r": 175,
    "g": 42,
    "b": 178
  },
  "hsl": {
    "h": 298.676,
    "s": 61.818,
    "l": 43.137
  },
  "oklch": {
    "l": 0.54847,
    "c": 0.2219,
    "h": 327.1
  },
  "luminance": 0.13984
}

Semantic roles & 50–950 ramp

primary
#AF2AB2
secondary
#73C771
accent
#E54346
background
#FCF7FC
surface
#F9EDF8
border
#D2C8D1
text
#140913
muted
#827B82

Preview Lab

Preview with #AF2AB2

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

Preview Lab → · Contrast checker → · Palette generator →

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