#AF2AA5#AF2AA5

#AF2AA5 is a mid, highly saturated purple. Relative luminance 0.135; OKLCH L 54.1% C 0.212 H 331.4°. Best body text is #FFFFFF at 5.68:1 contrast (WCAG AA passes).

Color values

HEX#AF2AA5
RGBrgb(175, 42, 165)
HSLhsl(305, 61%, 43%)
HSVhsv(305, 76%, 69%)
CMYKcmyk(0%, 76%, 5.7%, 31.4%)
CIE-LABlab(43.49, 65.21, -36.82)
CIE-LCHlch(43.49, 74.88, 330.55°)
OKLaboklab(54.1% 0.1864 -0.1014)
OKLCHoklch(54.1% 0.212 331.4)
XYZxyz(25.2987, 13.4886, 36.8611)
Luminance0.1349 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2AA5 #2AAF34
analogous
#762AAF #AF2AA5 #AF2A63
triadic
#AF2AA5 #A5AF2A #2AA5AF
tetradic
#AF2AA5 #AF762A #2AAF34 #2A63AF
square
#AF2AA5 #AF762A #2AAF34 #2A63AF
split-complementary
#AF2AA5 #63AF2A #2AAF76
monochromatic
#4C1248 #7E1E76 #AF2AA5 #D244C7 #DE75D6

Accessibility & contrast

On white

5.68
#AF2AA5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.70
#AF2AA5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2AA5
5.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2AA5#FFFFFF#000000##FFFFFF
##AF2AA51.005.683.705.68
#FFFFFF5.681.0021.001.00
#0000003.7021.001.0021.00
##FFFFFF5.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D5BA8
Deuteranopia (green-blind)
#556DA2
Tritanopia (blue-blind)
#B63B66
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #af2aa5;
/* rgb */ color: rgb(175, 42, 165);
/* oklch */ color: oklch(54.1% 0.212 331.4);
Tailwind
colors: {
  custom: {
    50: '#cb73c0',
    500: '#af2aa5',
    950: '#000000',
  },
}
SCSS
$custom: #af2aa5;
$custom-light: #cb73c0;
$custom-dark: #000000;
JSON
{
  "hex": "#af2aa5",
  "rgb": {
    "r": 175,
    "g": 42,
    "b": 165
  },
  "hsl": {
    "h": 304.511,
    "s": 61.29,
    "l": 42.549
  },
  "oklch": {
    "l": 0.54098,
    "c": 0.21223,
    "h": 331.4
  },
  "luminance": 0.13487
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF2AA5

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

Preview Lab → · Contrast checker → · Palette generator →

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