#AF2FA8#AF2FA8

#AF2FA8 is a mid, highly saturated purple. Relative luminance 0.140; OKLCH L 54.7% C 0.209 H 330.4°. Best body text is #FFFFFF at 5.53:1 contrast (WCAG AA passes).

Color values

HEX#AF2FA8
RGBrgb(175, 47, 168)
HSLhsl(303, 58%, 44%)
HSVhsv(303, 73%, 69%)
CMYKcmyk(0%, 73.1%, 4%, 31.4%)
CIE-LABlab(44.20, 64.11, -37.49)
CIE-LCHlch(44.20, 74.27, 329.68°)
OKLaboklab(54.66% 0.182 -0.1034)
OKLCHoklch(54.66% 0.209 330.4)
XYZxyz(25.7635, 13.9762, 38.3789)
Luminance0.1397 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2FA8 #2FAF36
analogous
#762FAF #AF2FA8 #AF2F68
triadic
#AF2FA8 #A8AF2F #2FA8AF
tetradic
#AF2FA8 #AF762F #2FAF36 #2F68AF
square
#AF2FA8 #AF762F #2FAF36 #2F68AF
split-complementary
#AF2FA8 #68AF2F #2FAF76
monochromatic
#4F154B #7F227A #AF2FA8 #CF4CC8 #DC7CD7

Accessibility & contrast

On white

5.53
#AF2FA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AF2FA8
5.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2FA8#FFFFFF#000000##FFFFFF
##AF2FA81.005.533.795.53
#FFFFFF5.531.0021.001.00
#0000003.7921.001.0021.00
##FFFFFF5.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#215DAB
Deuteranopia (green-blind)
#566FA5
Tritanopia (blue-blind)
#B64069
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #af2fa8;
/* rgb */ color: rgb(175, 47, 168);
/* oklch */ color: oklch(54.7% 0.209 330.4);
Tailwind
colors: {
  custom: {
    50: '#cb75c2',
    500: '#af2fa8',
    950: '#000000',
  },
}
SCSS
$custom: #af2fa8;
$custom-light: #cb75c2;
$custom-dark: #000000;
JSON
{
  "hex": "#af2fa8",
  "rgb": {
    "r": 175,
    "g": 47,
    "b": 168
  },
  "hsl": {
    "h": 303.281,
    "s": 57.658,
    "l": 43.529
  },
  "oklch": {
    "l": 0.54657,
    "c": 0.20929,
    "h": 330.4
  },
  "luminance": 0.13974
}

Semantic roles & 50–950 ramp

primary
#AF2FA8
secondary
#75C47A
accent
#E14F47
background
#FCF7FC
surface
#F9EEF8
border
#D2C9D1
text
#140912
muted
#827B81

Preview Lab

Preview with #AF2FA8

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

Preview Lab → · Contrast checker → · Palette generator →

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