#AF41B5#AF41B5

#AF41B5 is a mid, vivid purple. Relative luminance 0.162; OKLCH L 57.1% C 0.198 H 325.7°. Best body text is #FFFFFF at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#AF41B5
RGBrgb(175, 65, 181)
HSLhsl(297, 47%, 48%)
HSVhsv(297, 64%, 71%)
CMYKcmyk(3.3%, 64.1%, 0%, 29%)
CIE-LABlab(47.28, 59.58, -40.28)
CIE-LCHlch(47.28, 71.92, 325.94°)
OKLaboklab(57.1% 0.1634 -0.1116)
OKLCHoklch(57.1% 0.198 325.7)
XYZxyz(27.9094, 16.2325, 45.3702)
Luminance0.1623 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF41B5 #47B541
analogous
#7541B5 #AF41B5 #B54181
triadic
#AF41B5 #B5AF41 #41B5AF
tetradic
#AF41B5 #B57541 #47B541 #4181B5
square
#AF41B5 #B57541 #47B541 #4181B5
split-complementary
#AF41B5 #81B541 #41B575
monochromatic
#58215B #833188 #AF41B5 #C46AC9 #D697DA

Accessibility & contrast

On white

4.95
#AF41B5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.25
#AF41B5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF41B5
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF41B5#FFFFFF#000000##FFFFFF
##AF41B51.004.954.254.95
#FFFFFF4.951.0021.001.00
#0000004.2521.001.0021.00
##FFFFFF4.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D67B8
Deuteranopia (green-blind)
#5875B2
Tritanopia (blue-blind)
#B35275
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #af41b5;
/* rgb */ color: rgb(175, 65, 181);
/* oklch */ color: oklch(57.1% 0.198 325.7);
Tailwind
colors: {
  custom: {
    50: '#ca7ecb',
    500: '#af41b5',
    950: '#000000',
  },
}
SCSS
$custom: #af41b5;
$custom-light: #ca7ecb;
$custom-dark: #000000;
JSON
{
  "hex": "#af41b5",
  "rgb": {
    "r": 175,
    "g": 65,
    "b": 181
  },
  "hsl": {
    "h": 296.897,
    "s": 47.154,
    "l": 48.235
  },
  "oklch": {
    "l": 0.571,
    "c": 0.19789,
    "h": 325.7
  },
  "luminance": 0.16231
}

Semantic roles & 50–950 ramp

primary
#AF41B5
secondary
#8FC58C
accent
#D75158
background
#FCF8FC
surface
#F9EFF9
border
#D2CAD2
text
#140A13
muted
#827C82

Preview Lab

Preview with #AF41B5

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

Preview Lab → · Contrast checker → · Palette generator →

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