#AF2FA1#AF2FA1

#AF2FA1 is a mid, highly saturated purple. Relative luminance 0.137; OKLCH L 54.3% C 0.204 H 332.9°. Best body text is #FFFFFF at 5.61:1 contrast (WCAG AA passes).

Color values

HEX#AF2FA1
RGBrgb(175, 47, 161)
HSLhsl(307, 58%, 44%)
HSVhsv(307, 73%, 69%)
CMYKcmyk(0%, 73.1%, 8%, 31.4%)
CIE-LABlab(43.83, 63.01, -33.89)
CIE-LCHlch(43.83, 71.55, 331.73°)
OKLaboklab(54.28% 0.1817 -0.093)
OKLCHoklch(54.28% 0.204 332.9)
XYZxyz(25.1289, 13.7223, 35.0365)
Luminance0.1372 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2FA1 #2FAF3D
analogous
#7D2FAF #AF2FA1 #AF2F61
triadic
#AF2FA1 #A1AF2F #2FA1AF
tetradic
#AF2FA1 #AF7D2F #2FAF3D #2F61AF
square
#AF2FA1 #AF7D2F #2FAF3D #2F61AF
split-complementary
#AF2FA1 #61AF2F #2FAF7D
monochromatic
#4F1548 #7F2275 #AF2FA1 #CF4CC1 #DC7CD1

Accessibility & contrast

On white

5.61
#AF2FA1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.74
#AF2FA1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2FA1
5.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2FA1#FFFFFF#000000##FFFFFF
##AF2FA11.005.613.745.61
#FFFFFF5.611.0021.001.00
#0000003.7421.001.0021.00
##FFFFFF5.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#295CA4
Deuteranopia (green-blind)
#596E9E
Tritanopia (blue-blind)
#B73C65
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #af2fa1;
/* rgb */ color: rgb(175, 47, 161);
/* oklch */ color: oklch(54.3% 0.204 332.9);
Tailwind
colors: {
  custom: {
    50: '#cb74bd',
    500: '#af2fa1',
    950: '#000000',
  },
}
SCSS
$custom: #af2fa1;
$custom-light: #cb74bd;
$custom-dark: #000000;
JSON
{
  "hex": "#af2fa1",
  "rgb": {
    "r": 175,
    "g": 47,
    "b": 161
  },
  "hsl": {
    "h": 306.563,
    "s": 57.658,
    "l": 43.529
  },
  "oklch": {
    "l": 0.54275,
    "c": 0.2041,
    "h": 332.9
  },
  "luminance": 0.1372
}

Semantic roles & 50–950 ramp

primary
#AF2FA1
secondary
#75C47E
accent
#E15847
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140912
muted
#827B81

Preview Lab

Preview with #AF2FA1

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

Preview Lab → · Contrast checker → · Palette generator →

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