#AF2AA9#AF2AA9

#AF2AA9 is a mid, highly saturated purple. Relative luminance 0.136; OKLCH L 54.3% C 0.215 H 330.1°. Best body text is #FFFFFF at 5.63:1 contrast (WCAG AA passes).

Color values

HEX#AF2AA9
RGBrgb(175, 42, 169)
HSLhsl(303, 61%, 43%)
HSVhsv(303, 76%, 69%)
CMYKcmyk(0%, 76%, 3.4%, 31.4%)
CIE-LABlab(43.71, 65.83, -38.86)
CIE-LCHlch(43.71, 76.45, 329.45°)
OKLaboklab(54.32% 0.1865 -0.1073)
OKLCHoklch(54.32% 0.215 330.1)
XYZxyz(25.6685, 13.6365, 38.8086)
Luminance0.1363 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2AA9 #2AAF30
analogous
#732AAF #AF2AA9 #AF2A66
triadic
#AF2AA9 #A9AF2A #2AA9AF
tetradic
#AF2AA9 #AF732A #2AAF30 #2A66AF
square
#AF2AA9 #AF732A #2AAF30 #2A66AF
split-complementary
#AF2AA9 #66AF2A #2AAF73
monochromatic
#4C124A #7E1E79 #AF2AA9 #D244CC #DE75D9

Accessibility & contrast

On white

5.63
#AF2AA9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.73
#AF2AA9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2AA9
5.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2AA9#FFFFFF#000000##FFFFFF
##AF2AA91.005.633.735.63
#FFFFFF5.631.0021.001.00
#0000003.7321.001.0021.00
##FFFFFF5.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#175CAC
Deuteranopia (green-blind)
#536EA6
Tritanopia (blue-blind)
#B63D68
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #af2aa9;
/* rgb */ color: rgb(175, 42, 169);
/* oklch */ color: oklch(54.3% 0.215 330.1);
Tailwind
colors: {
  custom: {
    50: '#cb73c3',
    500: '#af2aa9',
    950: '#000000',
  },
}
SCSS
$custom: #af2aa9;
$custom-light: #cb73c3;
$custom-dark: #000000;
JSON
{
  "hex": "#af2aa9",
  "rgb": {
    "r": 175,
    "g": 42,
    "b": 169
  },
  "hsl": {
    "h": 302.707,
    "s": 61.29,
    "l": 42.549
  },
  "oklch": {
    "l": 0.54323,
    "c": 0.21516,
    "h": 330.1
  },
  "luminance": 0.13634
}

Semantic roles & 50–950 ramp

primary
#AF2AA9
secondary
#6FC673
accent
#E44B43
background
#FCF7FC
surface
#F9EDF8
border
#D2C8D1
text
#140912
muted
#827B81

Preview Lab

Preview with #AF2AA9

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

Preview Lab → · Contrast checker → · Palette generator →

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