#AF2FA3#AF2FA3

#AF2FA3 is a mid, highly saturated purple. Relative luminance 0.138; OKLCH L 54.4% C 0.206 H 332.2°. Best body text is #FFFFFF at 5.59:1 contrast (WCAG AA passes).

Color values

HEX#AF2FA3
RGBrgb(175, 47, 163)
HSLhsl(306, 58%, 44%)
HSVhsv(306, 73%, 69%)
CMYKcmyk(0%, 73.1%, 6.9%, 31.4%)
CIE-LABlab(43.94, 63.32, -34.92)
CIE-LCHlch(43.94, 72.31, 331.12°)
OKLaboklab(54.38% 0.1818 -0.096)
OKLCHoklch(54.38% 0.206 332.2)
XYZxyz(25.3066, 13.7934, 35.9728)
Luminance0.1379 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2FA3 #2FAF3B
analogous
#7B2FAF #AF2FA3 #AF2F63
triadic
#AF2FA3 #A3AF2F #2FA3AF
tetradic
#AF2FA3 #AF7B2F #2FAF3B #2F63AF
square
#AF2FA3 #AF7B2F #2FAF3B #2F63AF
split-complementary
#AF2FA3 #63AF2F #2FAF7B
monochromatic
#4F1549 #7F2276 #AF2FA3 #CF4CC3 #DC7CD3

Accessibility & contrast

On white

5.59
#AF2FA3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AF2FA3
5.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2FA3#FFFFFF#000000##FFFFFF
##AF2FA31.005.593.765.59
#FFFFFF5.591.0021.001.00
#0000003.7621.001.0021.00
##FFFFFF5.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#275CA6
Deuteranopia (green-blind)
#586EA0
Tritanopia (blue-blind)
#B63D66
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #af2fa3;
/* rgb */ color: rgb(175, 47, 163);
/* oklch */ color: oklch(54.4% 0.206 332.2);
Tailwind
colors: {
  custom: {
    50: '#cb74be',
    500: '#af2fa3',
    950: '#000000',
  },
}
SCSS
$custom: #af2fa3;
$custom-light: #cb74be;
$custom-dark: #000000;
JSON
{
  "hex": "#af2fa3",
  "rgb": {
    "r": 175,
    "g": 47,
    "b": 163
  },
  "hsl": {
    "h": 305.625,
    "s": 57.658,
    "l": 43.529
  },
  "oklch": {
    "l": 0.54383,
    "c": 0.20557,
    "h": 332.2
  },
  "luminance": 0.13791
}

Semantic roles & 50–950 ramp

primary
#AF2FA3
secondary
#75C47D
accent
#E15547
background
#FCF7FB
surface
#F9EDF7
border
#D2C8D0
text
#140912
muted
#827B81

Preview Lab

Preview with #AF2FA3

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

Preview Lab → · Contrast checker → · Palette generator →

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