#AF2AC5#AF2AC5

#AF2AC5 is a mid, highly saturated purple. Relative luminance 0.148; OKLCH L 56.0% C 0.237 H 321.4°. Best body text is #FFFFFF at 5.30:1 contrast (WCAG AA passes).

Color values

HEX#AF2AC5
RGBrgb(175, 42, 197)
HSLhsl(291, 65%, 47%)
HSVhsv(291, 79%, 77%)
CMYKcmyk(11.2%, 78.7%, 0%, 22.7%)
CIE-LABlab(45.36, 70.50, -52.67)
CIE-LCHlch(45.36, 88.00, 323.23°)
OKLaboklab(56.03% 0.1849 -0.1476)
OKLCHoklch(56.03% 0.237 321.4)
XYZxyz(28.5841, 14.8027, 54.1641)
Luminance0.1480 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2AC5 #40C52A
analogous
#622AC5 #AF2AC5 #C52A8E
triadic
#AF2AC5 #C5AF2A #2AC5AF
tetradic
#AF2AC5 #C5622A #40C52A #2A8EC5
square
#AF2AC5 #C5622A #40C52A #2A8EC5
split-complementary
#AF2AC5 #8EC52A #2AC562
monochromatic
#551460 #821F93 #AF2AC5 #C752DA #D785E5

Accessibility & contrast

On white

5.30
#AF2AC5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.96
#AF2AC5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2AC5
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2AC5#FFFFFF#000000##FFFFFF
##AF2AC51.005.303.965.30
#FFFFFF5.301.0021.001.00
#0000003.9621.001.0021.00
##FFFFFF5.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062C9
Deuteranopia (green-blind)
#3F70C2
Tritanopia (blue-blind)
#B04B78
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #af2ac5;
/* rgb */ color: rgb(175, 42, 197);
/* oklch */ color: oklch(56.0% 0.237 321.4);
Tailwind
colors: {
  custom: {
    50: '#cb74d7',
    500: '#af2ac5',
    950: '#000000',
  },
}
SCSS
$custom: #af2ac5;
$custom-light: #cb74d7;
$custom-dark: #000000;
JSON
{
  "hex": "#af2ac5",
  "rgb": {
    "r": 175,
    "g": 42,
    "b": 197
  },
  "hsl": {
    "h": 291.484,
    "s": 64.854,
    "l": 46.863
  },
  "oklch": {
    "l": 0.5603,
    "c": 0.23659,
    "h": 321.4
  },
  "luminance": 0.14801
}

Semantic roles & 50–950 ramp

primary
#AF2AC5
secondary
#88CE7D
accent
#E84058
background
#FDF7FD
surface
#FAEEFA
border
#D3C9D3
text
#140914
muted
#837B83

Preview Lab

Preview with #AF2AC5

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

Preview Lab → · Contrast checker → · Palette generator →

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