#AF2AAA#AF2AAA

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

Color values

HEX#AF2AAA
RGBrgb(175, 42, 170)
HSLhsl(302, 61%, 43%)
HSVhsv(302, 76%, 69%)
CMYKcmyk(0%, 76%, 2.9%, 31.4%)
CIE-LABlab(43.76, 65.99, -39.37)
CIE-LCHlch(43.76, 76.84, 329.18°)
OKLaboklab(54.38% 0.1865 -0.1088)
OKLCHoklch(54.38% 0.216 329.7)
XYZxyz(25.7627, 13.6742, 39.3049)
Luminance0.1367 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2AAA #2AAF2F
analogous
#722AAF #AF2AAA #AF2A67
triadic
#AF2AAA #AAAF2A #2AAAAF
tetradic
#AF2AAA #AF722A #2AAF2F #2A67AF
square
#AF2AAA #AF722A #2AAF2F #2A67AF
split-complementary
#AF2AAA #67AF2A #2AAF72
monochromatic
#4C124A #7E1E7A #AF2AAA #D244CD #DE75DA

Accessibility & contrast

On white

5.62
#AF2AAA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AF2AAA
5.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2AAA#FFFFFF#000000##FFFFFF
##AF2AAA1.005.623.735.62
#FFFFFF5.621.0021.001.00
#0000003.7321.001.0021.00
##FFFFFF5.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#155CAD
Deuteranopia (green-blind)
#536EA7
Tritanopia (blue-blind)
#B53D69
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #af2aaa;
/* rgb */ color: rgb(175, 42, 170);
/* oklch */ color: oklch(54.4% 0.216 329.7);
Tailwind
colors: {
  custom: {
    50: '#cb73c4',
    500: '#af2aaa',
    950: '#000000',
  },
}
SCSS
$custom: #af2aaa;
$custom-light: #cb73c4;
$custom-dark: #000000;
JSON
{
  "hex": "#af2aaa",
  "rgb": {
    "r": 175,
    "g": 42,
    "b": 170
  },
  "hsl": {
    "h": 302.256,
    "s": 61.29,
    "l": 42.549
  },
  "oklch": {
    "l": 0.5438,
    "c": 0.2159,
    "h": 329.7
  },
  "luminance": 0.13672
}

Semantic roles & 50–950 ramp

primary
#AF2AAA
secondary
#6FC672
accent
#E44943
background
#FCF7FC
surface
#F9EDF8
border
#D2C8D1
text
#140912
muted
#827B81

Preview Lab

Preview with #AF2AAA

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

Preview Lab → · Contrast checker → · Palette generator →

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