#AF2AA0#AF2AA0

#AF2AA0 is a mid, highly saturated purple. Relative luminance 0.133; OKLCH L 53.8% C 0.209 H 333.2°. Best body text is #FFFFFF at 5.74:1 contrast (WCAG AA passes).

Color values

HEX#AF2AA0
RGBrgb(175, 42, 160)
HSLhsl(307, 61%, 43%)
HSVhsv(307, 76%, 69%)
CMYKcmyk(0%, 76%, 8.6%, 31.4%)
CIE-LABlab(43.23, 64.44, -34.25)
CIE-LCHlch(43.23, 72.98, 332.01°)
OKLaboklab(53.82% 0.1862 -0.094)
OKLCHoklch(53.82% 0.209 333.2)
XYZxyz(24.8525, 13.3101, 34.5111)
Luminance0.1331 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2AA0 #2AAF39
analogous
#7C2AAF #AF2AA0 #AF2A5D
triadic
#AF2AA0 #A0AF2A #2AA0AF
tetradic
#AF2AA0 #AF7C2A #2AAF39 #2A5DAF
square
#AF2AA0 #AF7C2A #2AAF39 #2A5DAF
split-complementary
#AF2AA0 #5DAF2A #2AAF7C
monochromatic
#4C1246 #7E1E73 #AF2AA0 #D244C2 #DE75D2

Accessibility & contrast

On white

5.74
#AF2AA0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.66
#AF2AA0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2AA0
5.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2AA0#FFFFFF#000000##FFFFFF
##AF2AA01.005.743.665.74
#FFFFFF5.741.0021.001.00
#0000003.6621.001.0021.00
##FFFFFF5.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#245AA3
Deuteranopia (green-blind)
#586D9D
Tritanopia (blue-blind)
#B73863
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #af2aa0;
/* rgb */ color: rgb(175, 42, 160);
/* oklch */ color: oklch(53.8% 0.209 333.2);
Tailwind
colors: {
  custom: {
    50: '#cb72bc',
    500: '#af2aa0',
    950: '#000000',
  },
}
SCSS
$custom: #af2aa0;
$custom-light: #cb72bc;
$custom-dark: #000000;
JSON
{
  "hex": "#af2aa0",
  "rgb": {
    "r": 175,
    "g": 42,
    "b": 160
  },
  "hsl": {
    "h": 306.767,
    "s": 61.29,
    "l": 42.549
  },
  "oklch": {
    "l": 0.53823,
    "c": 0.20862,
    "h": 333.2
  },
  "luminance": 0.13308
}

Semantic roles & 50–950 ramp

primary
#AF2AA0
secondary
#6FC679
accent
#E45643
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140912
muted
#827B81

Preview Lab

Preview with #AF2AA0

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

Preview Lab → · Contrast checker → · Palette generator →

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