#AF2CAA#AF2CAA

#AF2CAA is a mid, highly saturated purple. Relative luminance 0.138; OKLCH L 54.5% C 0.214 H 329.7°. Best body text is #FFFFFF at 5.58:1 contrast (WCAG AA passes).

Color values

HEX#AF2CAA
RGBrgb(175, 44, 170)
HSLhsl(302, 60%, 43%)
HSVhsv(302, 75%, 69%)
CMYKcmyk(0%, 74.9%, 2.9%, 31.4%)
CIE-LABlab(43.97, 65.38, -39.03)
CIE-LCHlch(43.97, 76.15, 329.16°)
OKLaboklab(54.53% 0.1847 -0.1079)
OKLCHoklch(54.53% 0.214 329.7)
XYZxyz(25.8354, 13.8196, 39.3291)
Luminance0.1382 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2CAA #2CAF31
analogous
#722CAF #AF2CAA #AF2C68
triadic
#AF2CAA #AAAF2C #2CAAAF
tetradic
#AF2CAA #AF722C #2CAF31 #2C68AF
square
#AF2CAA #AF722C #2CAF31 #2C68AF
split-complementary
#AF2CAA #68AF2C #2CAF72
monochromatic
#4D134B #7E207A #AF2CAA #D147CC #DD78D9

Accessibility & contrast

On white

5.58
#AF2CAA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.76
#AF2CAA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2CAA
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2CAA#FFFFFF#000000##FFFFFF
##AF2CAA1.005.583.765.58
#FFFFFF5.581.0021.001.00
#0000003.7621.001.0021.00
##FFFFFF5.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#195DAD
Deuteranopia (green-blind)
#536EA7
Tritanopia (blue-blind)
#B53F69
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #af2caa;
/* rgb */ color: rgb(175, 44, 170);
/* oklch */ color: oklch(54.5% 0.214 329.7);
Tailwind
colors: {
  custom: {
    50: '#cb73c4',
    500: '#af2caa',
    950: '#000000',
  },
}
SCSS
$custom: #af2caa;
$custom-light: #cb73c4;
$custom-dark: #000000;
JSON
{
  "hex": "#af2caa",
  "rgb": {
    "r": 175,
    "g": 44,
    "b": 170
  },
  "hsl": {
    "h": 302.29,
    "s": 59.817,
    "l": 42.941
  },
  "oklch": {
    "l": 0.5453,
    "c": 0.21392,
    "h": 329.7
  },
  "luminance": 0.13818
}

Semantic roles & 50–950 ramp

primary
#AF2CAA
secondary
#72C575
accent
#E34B45
background
#FCF7FC
surface
#F9EDF8
border
#D2C8D1
text
#140912
muted
#827B81

Preview Lab

Preview with #AF2CAA

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

Preview Lab → · Contrast checker → · Palette generator →

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