#AF2AA7#AF2AA7

#AF2AA7 is a mid, highly saturated purple. Relative luminance 0.136; OKLCH L 54.2% C 0.214 H 330.8°. Best body text is #FFFFFF at 5.66:1 contrast (WCAG AA passes).

Color values

HEX#AF2AA7
RGBrgb(175, 42, 167)
HSLhsl(304, 61%, 43%)
HSVhsv(304, 76%, 69%)
CMYKcmyk(0%, 76%, 4.6%, 31.4%)
CIE-LABlab(43.60, 65.52, -37.84)
CIE-LCHlch(43.60, 75.66, 329.99°)
OKLaboklab(54.21% 0.1865 -0.1044)
OKLCHoklch(54.21% 0.214 330.8)
XYZxyz(25.4822, 13.5620, 37.8273)
Luminance0.1356 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2AA7 #2AAF32
analogous
#742AAF #AF2AA7 #AF2A65
triadic
#AF2AA7 #A7AF2A #2AA7AF
tetradic
#AF2AA7 #AF742A #2AAF32 #2A65AF
square
#AF2AA7 #AF742A #2AAF32 #2A65AF
split-complementary
#AF2AA7 #65AF2A #2AAF74
monochromatic
#4C1249 #7E1E78 #AF2AA7 #D244CA #DE75D8

Accessibility & contrast

On white

5.66
#AF2AA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.71
#AF2AA7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2AA7
5.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2AA7#FFFFFF#000000##FFFFFF
##AF2AA71.005.663.715.66
#FFFFFF5.661.0021.001.00
#0000003.7121.001.0021.00
##FFFFFF5.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A5BAA
Deuteranopia (green-blind)
#546DA4
Tritanopia (blue-blind)
#B63C67
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #af2aa7;
/* rgb */ color: rgb(175, 42, 167);
/* oklch */ color: oklch(54.2% 0.214 330.8);
Tailwind
colors: {
  custom: {
    50: '#cb73c1',
    500: '#af2aa7',
    950: '#000000',
  },
}
SCSS
$custom: #af2aa7;
$custom-light: #cb73c1;
$custom-dark: #000000;
JSON
{
  "hex": "#af2aa7",
  "rgb": {
    "r": 175,
    "g": 42,
    "b": 167
  },
  "hsl": {
    "h": 303.609,
    "s": 61.29,
    "l": 42.549
  },
  "oklch": {
    "l": 0.54209,
    "c": 0.21369,
    "h": 330.8
  },
  "luminance": 0.1356
}

Semantic roles & 50–950 ramp

primary
#AF2AA7
secondary
#6FC674
accent
#E44D43
background
#FCF7FB
surface
#F9EDF7
border
#D2C8D0
text
#140912
muted
#827B81

Preview Lab

Preview with #AF2AA7

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

Preview Lab → · Contrast checker → · Palette generator →

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