#AF2AA3#AF2AA3

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

Color values

HEX#AF2AA3
RGBrgb(175, 42, 163)
HSLhsl(305, 61%, 43%)
HSVhsv(305, 76%, 69%)
CMYKcmyk(0%, 76%, 6.9%, 31.4%)
CIE-LABlab(43.38, 64.90, -35.79)
CIE-LCHlch(43.38, 74.11, 331.12°)
OKLaboklab(53.99% 0.1863 -0.0985)
OKLCHoklch(53.99% 0.211 332.1)
XYZxyz(25.1181, 13.4163, 35.9099)
Luminance0.1341 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2AA3 #2AAF36
analogous
#792AAF #AF2AA3 #AF2A60
triadic
#AF2AA3 #A3AF2A #2AA3AF
tetradic
#AF2AA3 #AF792A #2AAF36 #2A60AF
square
#AF2AA3 #AF792A #2AAF36 #2A60AF
split-complementary
#AF2AA3 #60AF2A #2AAF79
monochromatic
#4C1247 #7E1E75 #AF2AA3 #D244C5 #DE75D5

Accessibility & contrast

On white

5.70
#AF2AA3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AF2AA3
5.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2AA3#FFFFFF#000000##FFFFFF
##AF2AA31.005.703.685.70
#FFFFFF5.701.0021.001.00
#0000003.6821.001.0021.00
##FFFFFF5.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#205BA6
Deuteranopia (green-blind)
#566DA0
Tritanopia (blue-blind)
#B73A65
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #af2aa3;
/* rgb */ color: rgb(175, 42, 163);
/* oklch */ color: oklch(54.0% 0.211 332.1);
Tailwind
colors: {
  custom: {
    50: '#cb72bf',
    500: '#af2aa3',
    950: '#000000',
  },
}
SCSS
$custom: #af2aa3;
$custom-light: #cb72bf;
$custom-dark: #000000;
JSON
{
  "hex": "#af2aa3",
  "rgb": {
    "r": 175,
    "g": 42,
    "b": 163
  },
  "hsl": {
    "h": 305.414,
    "s": 61.29,
    "l": 42.549
  },
  "oklch": {
    "l": 0.53987,
    "c": 0.21077,
    "h": 332.1
  },
  "luminance": 0.13414
}

Semantic roles & 50–950 ramp

primary
#AF2AA3
secondary
#6FC677
accent
#E45243
background
#FCF7FB
surface
#F9EDF7
border
#D2C8D0
text
#140912
muted
#827B81

Preview Lab

Preview with #AF2AA3

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

Preview Lab → · Contrast checker → · Palette generator →

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