#AF2AA2#AF2AA2

#AF2AA2 is a mid, highly saturated purple. Relative luminance 0.134; OKLCH L 53.9% C 0.210 H 332.5°. Best body text is #FFFFFF at 5.71:1 contrast (WCAG AA passes).

Color values

HEX#AF2AA2
RGBrgb(175, 42, 162)
HSLhsl(306, 61%, 43%)
HSVhsv(306, 76%, 69%)
CMYKcmyk(0%, 76%, 7.4%, 31.4%)
CIE-LABlab(43.33, 64.74, -35.28)
CIE-LCHlch(43.33, 73.73, 331.41°)
OKLaboklab(53.93% 0.1863 -0.097)
OKLCHoklch(53.93% 0.21 332.5)
XYZxyz(25.0289, 13.3806, 35.4399)
Luminance0.1338 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2AA2 #2AAF37
analogous
#7A2AAF #AF2AA2 #AF2A5F
triadic
#AF2AA2 #A2AF2A #2AA2AF
tetradic
#AF2AA2 #AF7A2A #2AAF37 #2A5FAF
square
#AF2AA2 #AF7A2A #2AAF37 #2A5FAF
split-complementary
#AF2AA2 #5FAF2A #2AAF7A
monochromatic
#4C1247 #7E1E74 #AF2AA2 #D244C4 #DE75D4

Accessibility & contrast

On white

5.71
#AF2AA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.68
#AF2AA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2AA2
5.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2AA2#FFFFFF#000000##FFFFFF
##AF2AA21.005.713.685.71
#FFFFFF5.711.0021.001.00
#0000003.6821.001.0021.00
##FFFFFF5.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#225AA5
Deuteranopia (green-blind)
#576D9F
Tritanopia (blue-blind)
#B73964
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #af2aa2;
/* rgb */ color: rgb(175, 42, 162);
/* oklch */ color: oklch(53.9% 0.210 332.5);
Tailwind
colors: {
  custom: {
    50: '#cb72be',
    500: '#af2aa2',
    950: '#000000',
  },
}
SCSS
$custom: #af2aa2;
$custom-light: #cb72be;
$custom-dark: #000000;
JSON
{
  "hex": "#af2aa2",
  "rgb": {
    "r": 175,
    "g": 42,
    "b": 162
  },
  "hsl": {
    "h": 305.865,
    "s": 61.29,
    "l": 42.549
  },
  "oklch": {
    "l": 0.53932,
    "c": 0.21005,
    "h": 332.5
  },
  "luminance": 0.13379
}

Semantic roles & 50–950 ramp

primary
#AF2AA2
secondary
#6FC678
accent
#E45343
background
#FCF7FB
surface
#F9EDF7
border
#D2C8D0
text
#140912
muted
#827B81

Preview Lab

Preview with #AF2AA2

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

Preview Lab → · Contrast checker → · Palette generator →

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