#AF2AAB#AF2AAB

#AF2AAB is a mid, highly saturated purple. Relative luminance 0.137; OKLCH L 54.4% C 0.217 H 329.4°. Best body text is #FFFFFF at 5.61:1 contrast (WCAG AA passes).

Color values

HEX#AF2AAB
RGBrgb(175, 42, 171)
HSLhsl(302, 61%, 43%)
HSVhsv(302, 76%, 69%)
CMYKcmyk(0%, 76%, 2.3%, 31.4%)
CIE-LABlab(43.82, 66.15, -39.87)
CIE-LCHlch(43.82, 77.24, 328.92°)
OKLaboklab(54.44% 0.1865 -0.1103)
OKLCHoklch(54.44% 0.217 329.4)
XYZxyz(25.8577, 13.7122, 39.8050)
Luminance0.1371 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2AAB #2AAF2E
analogous
#712AAF #AF2AAB #AF2A68
triadic
#AF2AAB #ABAF2A #2AABAF
tetradic
#AF2AAB #AF712A #2AAF2E #2A68AF
square
#AF2AAB #AF712A #2AAF2E #2A68AF
split-complementary
#AF2AAB #68AF2A #2AAF71
monochromatic
#4C124B #7E1E7B #AF2AAB #D244CE #DE75DB

Accessibility & contrast

On white

5.61
#AF2AAB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.74
#AF2AAB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2AAB
5.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2AAB#FFFFFF#000000##FFFFFF
##AF2AAB1.005.613.745.61
#FFFFFF5.611.0021.001.00
#0000003.7421.001.0021.00
##FFFFFF5.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#125CAE
Deuteranopia (green-blind)
#526EA8
Tritanopia (blue-blind)
#B53E69
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #af2aab;
/* rgb */ color: rgb(175, 42, 171);
/* oklch */ color: oklch(54.4% 0.217 329.4);
Tailwind
colors: {
  custom: {
    50: '#cb73c4',
    500: '#af2aab',
    950: '#000000',
  },
}
SCSS
$custom: #af2aab;
$custom-light: #cb73c4;
$custom-dark: #000000;
JSON
{
  "hex": "#af2aab",
  "rgb": {
    "r": 175,
    "g": 42,
    "b": 171
  },
  "hsl": {
    "h": 301.805,
    "s": 61.29,
    "l": 42.549
  },
  "oklch": {
    "l": 0.54437,
    "c": 0.21664,
    "h": 329.4
  },
  "luminance": 0.1371
}

Semantic roles & 50–950 ramp

primary
#AF2AAB
secondary
#6FC672
accent
#E44843
background
#FCF7FC
surface
#F9EDF8
border
#D2C8D1
text
#140913
muted
#827B82

Preview Lab

Preview with #AF2AAB

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

Preview Lab → · Contrast checker → · Palette generator →

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