#AF41B3#AF41B3

#AF41B3 is a mid, vivid purple. Relative luminance 0.161; OKLCH L 57.0% C 0.196 H 326.3°. Best body text is #FFFFFF at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#AF41B3
RGBrgb(175, 65, 179)
HSLhsl(298, 47%, 48%)
HSVhsv(298, 64%, 70%)
CMYKcmyk(2.2%, 63.7%, 0%, 29.8%)
CIE-LABlab(47.17, 59.23, -39.28)
CIE-LCHlch(47.17, 71.07, 326.45°)
OKLaboklab(56.99% 0.1633 -0.1087)
OKLCHoklch(56.99% 0.196 326.3)
XYZxyz(27.7057, 16.1510, 44.2972)
Luminance0.1615 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF41B3 #45B341
analogous
#7641B3 #AF41B3 #B3417E
triadic
#AF41B3 #B3AF41 #41B3AF
tetradic
#AF41B3 #B37641 #45B341 #417EB3
square
#AF41B3 #B37641 #45B341 #417EB3
split-complementary
#AF41B3 #7EB341 #41B376
monochromatic
#572059 #833186 #AF41B3 #C569C8 #D696D9

Accessibility & contrast

On white

4.96
#AF41B3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.23
#AF41B3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF41B3
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF41B3#FFFFFF#000000##FFFFFF
##AF41B31.004.964.234.96
#FFFFFF4.961.0021.001.00
#0000004.2321.001.0021.00
##FFFFFF4.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F67B6
Deuteranopia (green-blind)
#5975B0
Tritanopia (blue-blind)
#B35174
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #af41b3;
/* rgb */ color: rgb(175, 65, 179);
/* oklch */ color: oklch(57.0% 0.196 326.3);
Tailwind
colors: {
  custom: {
    50: '#ca7dca',
    500: '#af41b3',
    950: '#000000',
  },
}
SCSS
$custom: #af41b3;
$custom-light: #ca7dca;
$custom-dark: #000000;
JSON
{
  "hex": "#af41b3",
  "rgb": {
    "r": 175,
    "g": 65,
    "b": 179
  },
  "hsl": {
    "h": 297.895,
    "s": 46.721,
    "l": 47.843
  },
  "oklch": {
    "l": 0.56989,
    "c": 0.19618,
    "h": 326.3
  },
  "luminance": 0.16149
}

Semantic roles & 50–950 ramp

primary
#AF41B3
secondary
#8DC48B
accent
#D65156
background
#FCF8FC
surface
#F9EFF8
border
#D2CAD1
text
#140A13
muted
#827C82

Preview Lab

Preview with #AF41B3

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

Preview Lab → · Contrast checker → · Palette generator →

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