#AF2FA7#AF2FA7

#AF2FA7 is a mid, highly saturated purple. Relative luminance 0.139; OKLCH L 54.6% C 0.209 H 330.7°. Best body text is #FFFFFF at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#AF2FA7
RGBrgb(175, 47, 167)
HSLhsl(304, 58%, 44%)
HSVhsv(304, 73%, 69%)
CMYKcmyk(0%, 73.1%, 4.6%, 31.4%)
CIE-LABlab(44.15, 63.95, -36.98)
CIE-LCHlch(44.15, 73.87, 329.96°)
OKLaboklab(54.6% 0.1819 -0.1019)
OKLCHoklch(54.6% 0.209 330.7)
XYZxyz(25.6707, 13.9390, 37.8902)
Luminance0.1394 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2FA7 #2FAF37
analogous
#772FAF #AF2FA7 #AF2F67
triadic
#AF2FA7 #A7AF2F #2FA7AF
tetradic
#AF2FA7 #AF772F #2FAF37 #2F67AF
square
#AF2FA7 #AF772F #2FAF37 #2F67AF
split-complementary
#AF2FA7 #67AF2F #2FAF77
monochromatic
#4F154B #7F2279 #AF2FA7 #CF4CC7 #DC7CD6

Accessibility & contrast

On white

5.54
#AF2FA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.79
#AF2FA7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2FA7
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2FA7#FFFFFF#000000##FFFFFF
##AF2FA71.005.543.795.54
#FFFFFF5.541.0021.001.00
#0000003.7921.001.0021.00
##FFFFFF5.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#225DAA
Deuteranopia (green-blind)
#566FA4
Tritanopia (blue-blind)
#B63F68
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #af2fa7;
/* rgb */ color: rgb(175, 47, 167);
/* oklch */ color: oklch(54.6% 0.209 330.7);
Tailwind
colors: {
  custom: {
    50: '#cb75c1',
    500: '#af2fa7',
    950: '#000000',
  },
}
SCSS
$custom: #af2fa7;
$custom-light: #cb75c1;
$custom-dark: #000000;
JSON
{
  "hex": "#af2fa7",
  "rgb": {
    "r": 175,
    "g": 47,
    "b": 167
  },
  "hsl": {
    "h": 303.75,
    "s": 57.658,
    "l": 43.529
  },
  "oklch": {
    "l": 0.54602,
    "c": 0.20854,
    "h": 330.7
  },
  "luminance": 0.13937
}

Semantic roles & 50–950 ramp

primary
#AF2FA7
secondary
#75C47A
accent
#E15147
background
#FCF7FB
surface
#F9EEF7
border
#D2C9D0
text
#140912
muted
#827B81

Preview Lab

Preview with #AF2FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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