#AF2FA5#AF2FA5

#AF2FA5 is a mid, highly saturated purple. Relative luminance 0.139; OKLCH L 54.5% C 0.207 H 331.4°. Best body text is #FFFFFF at 5.57:1 contrast (WCAG AA passes).

Color values

HEX#AF2FA5
RGBrgb(175, 47, 165)
HSLhsl(305, 58%, 44%)
HSVhsv(305, 73%, 69%)
CMYKcmyk(0%, 73.1%, 5.7%, 31.4%)
CIE-LABlab(44.04, 63.63, -35.95)
CIE-LCHlch(44.04, 73.09, 330.53°)
OKLaboklab(54.49% 0.1819 -0.099)
OKLCHoklch(54.49% 0.207 331.4)
XYZxyz(25.4872, 13.8657, 36.9240)
Luminance0.1386 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2FA5 #2FAF39
analogous
#792FAF #AF2FA5 #AF2F65
triadic
#AF2FA5 #A5AF2F #2FA5AF
tetradic
#AF2FA5 #AF792F #2FAF39 #2F65AF
square
#AF2FA5 #AF792F #2FAF39 #2F65AF
split-complementary
#AF2FA5 #65AF2F #2FAF79
monochromatic
#4F154A #7F2278 #AF2FA5 #CF4CC5 #DC7CD4

Accessibility & contrast

On white

5.57
#AF2FA5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AF2FA5
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2FA5#FFFFFF#000000##FFFFFF
##AF2FA51.005.573.775.57
#FFFFFF5.571.0021.001.00
#0000003.7721.001.0021.00
##FFFFFF5.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#255DA8
Deuteranopia (green-blind)
#576EA2
Tritanopia (blue-blind)
#B63E67
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #af2fa5;
/* rgb */ color: rgb(175, 47, 165);
/* oklch */ color: oklch(54.5% 0.207 331.4);
Tailwind
colors: {
  custom: {
    50: '#cb75c0',
    500: '#af2fa5',
    950: '#000000',
  },
}
SCSS
$custom: #af2fa5;
$custom-light: #cb75c0;
$custom-dark: #000000;
JSON
{
  "hex": "#af2fa5",
  "rgb": {
    "r": 175,
    "g": 47,
    "b": 165
  },
  "hsl": {
    "h": 304.688,
    "s": 57.658,
    "l": 43.529
  },
  "oklch": {
    "l": 0.54491,
    "c": 0.20705,
    "h": 331.4
  },
  "luminance": 0.13864
}

Semantic roles & 50–950 ramp

primary
#AF2FA5
secondary
#75C47B
accent
#E15347
background
#FCF7FB
surface
#F9EDF7
border
#D2C8D0
text
#140912
muted
#827B81

Preview Lab

Preview with #AF2FA5

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

Preview Lab → · Contrast checker → · Palette generator →

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