#AF2AA4#AF2AA4

#AF2AA4 is a mid, highly saturated purple. Relative luminance 0.135; OKLCH L 54.0% C 0.211 H 331.8°. Best body text is #FFFFFF at 5.69:1 contrast (WCAG AA passes).

Color values

HEX#AF2AA4
RGBrgb(175, 42, 164)
HSLhsl(305, 61%, 43%)
HSVhsv(305, 76%, 69%)
CMYKcmyk(0%, 76%, 6.3%, 31.4%)
CIE-LABlab(43.44, 65.05, -36.31)
CIE-LCHlch(43.44, 74.50, 330.83°)
OKLaboklab(54.04% 0.1864 -0.1)
OKLCHoklch(54.04% 0.212 331.8)
XYZxyz(25.2080, 13.4523, 36.3837)
Luminance0.1345 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2AA4 #2AAF35
analogous
#772AAF #AF2AA4 #AF2A62
triadic
#AF2AA4 #A4AF2A #2AA4AF
tetradic
#AF2AA4 #AF772A #2AAF35 #2A62AF
square
#AF2AA4 #AF772A #2AAF35 #2A62AF
split-complementary
#AF2AA4 #62AF2A #2AAF77
monochromatic
#4C1247 #7E1E76 #AF2AA4 #D244C6 #DE75D5

Accessibility & contrast

On white

5.69
#AF2AA4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.69
#AF2AA4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2AA4
5.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2AA4#FFFFFF#000000##FFFFFF
##AF2AA41.005.693.695.69
#FFFFFF5.691.0021.001.00
#0000003.6921.001.0021.00
##FFFFFF5.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F5BA7
Deuteranopia (green-blind)
#566DA1
Tritanopia (blue-blind)
#B63A65
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #af2aa4;
/* rgb */ color: rgb(175, 42, 164);
/* oklch */ color: oklch(54.0% 0.211 331.8);
Tailwind
colors: {
  custom: {
    50: '#cb72bf',
    500: '#af2aa4',
    950: '#000000',
  },
}
SCSS
$custom: #af2aa4;
$custom-light: #cb72bf;
$custom-dark: #000000;
JSON
{
  "hex": "#af2aa4",
  "rgb": {
    "r": 175,
    "g": 42,
    "b": 164
  },
  "hsl": {
    "h": 304.962,
    "s": 61.29,
    "l": 42.549
  },
  "oklch": {
    "l": 0.54042,
    "c": 0.2115,
    "h": 331.8
  },
  "luminance": 0.1345
}

Semantic roles & 50–950 ramp

primary
#AF2AA4
secondary
#6FC676
accent
#E45143
background
#FCF7FB
surface
#F9EDF7
border
#D2C8D0
text
#140912
muted
#827B81

Preview Lab

Preview with #AF2AA4

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

Preview Lab → · Contrast checker → · Palette generator →

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