#AF2FA4#AF2FA4

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

Color values

HEX#AF2FA4
RGBrgb(175, 47, 164)
HSLhsl(305, 58%, 44%)
HSVhsv(305, 73%, 69%)
CMYKcmyk(0%, 73.1%, 6.3%, 31.4%)
CIE-LABlab(43.99, 63.48, -35.44)
CIE-LCHlch(43.99, 72.70, 330.83°)
OKLaboklab(54.44% 0.1818 -0.0975)
OKLCHoklch(54.44% 0.206 331.8)
XYZxyz(25.3966, 13.8294, 36.4465)
Luminance0.1383 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2FA4 #2FAF3A
analogous
#7A2FAF #AF2FA4 #AF2F64
triadic
#AF2FA4 #A4AF2F #2FA4AF
tetradic
#AF2FA4 #AF7A2F #2FAF3A #2F64AF
square
#AF2FA4 #AF7A2F #2FAF3A #2F64AF
split-complementary
#AF2FA4 #64AF2F #2FAF7A
monochromatic
#4F154A #7F2277 #AF2FA4 #CF4CC4 #DC7CD4

Accessibility & contrast

On white

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

On black

3.77
#AF2FA4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##AF2FA4#FFFFFF#000000##FFFFFF
##AF2FA41.005.583.775.58
#FFFFFF5.581.0021.001.00
#0000003.7721.001.0021.00
##FFFFFF5.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#265DA7
Deuteranopia (green-blind)
#586EA1
Tritanopia (blue-blind)
#B63E67
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #af2fa4;
/* rgb */ color: rgb(175, 47, 164);
/* oklch */ color: oklch(54.4% 0.206 331.8);
Tailwind
colors: {
  custom: {
    50: '#cb74bf',
    500: '#af2fa4',
    950: '#000000',
  },
}
SCSS
$custom: #af2fa4;
$custom-light: #cb74bf;
$custom-dark: #000000;
JSON
{
  "hex": "#af2fa4",
  "rgb": {
    "r": 175,
    "g": 47,
    "b": 164
  },
  "hsl": {
    "h": 305.156,
    "s": 57.658,
    "l": 43.529
  },
  "oklch": {
    "l": 0.54437,
    "c": 0.20631,
    "h": 331.8
  },
  "luminance": 0.13827
}

Semantic roles & 50–950 ramp

primary
#AF2FA4
secondary
#75C47C
accent
#E15447
background
#FCF7FB
surface
#F9EDF7
border
#D2C8D0
text
#140912
muted
#827B81

Preview Lab

Preview with #AF2FA4

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

Preview Lab → · Contrast checker → · Palette generator →

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