#AF41B1#AF41B1

#AF41B1 is a mid, vivid purple. Relative luminance 0.161; OKLCH L 56.9% C 0.194 H 327.0°. Best body text is #FFFFFF at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#AF41B1
RGBrgb(175, 65, 177)
HSLhsl(299, 46%, 47%)
HSVhsv(299, 63%, 69%)
CMYKcmyk(1.1%, 63.3%, 0%, 30.6%)
CIE-LABlab(47.07, 58.88, -38.27)
CIE-LCHlch(47.07, 70.22, 326.98°)
OKLaboklab(56.88% 0.1632 -0.1058)
OKLCHoklch(56.88% 0.194 327)
XYZxyz(27.5048, 16.0707, 43.2397)
Luminance0.1607 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF41B1 #43B141
analogous
#7741B1 #AF41B1 #B1417B
triadic
#AF41B1 #B1AF41 #41B1AF
tetradic
#AF41B1 #B17741 #43B141 #417BB1
square
#AF41B1 #B17741 #43B141 #417BB1
split-complementary
#AF41B1 #7BB141 #41B177
monochromatic
#562057 #833184 #AF41B1 #C668C7 #D795D8

Accessibility & contrast

On white

4.98
#AF41B1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.21
#AF41B1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF41B1
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF41B1#FFFFFF#000000##FFFFFF
##AF41B11.004.984.214.98
#FFFFFF4.981.0021.001.00
#0000004.2121.001.0021.00
##FFFFFF4.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3167B4
Deuteranopia (green-blind)
#5A75AE
Tritanopia (blue-blind)
#B45073
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #af41b1;
/* rgb */ color: rgb(175, 65, 177);
/* oklch */ color: oklch(56.9% 0.194 327.0);
Tailwind
colors: {
  custom: {
    50: '#ca7dc9',
    500: '#af41b1',
    950: '#000000',
  },
}
SCSS
$custom: #af41b1;
$custom-light: #ca7dc9;
$custom-dark: #000000;
JSON
{
  "hex": "#af41b1",
  "rgb": {
    "r": 175,
    "g": 65,
    "b": 177
  },
  "hsl": {
    "h": 298.929,
    "s": 46.281,
    "l": 47.451
  },
  "oklch": {
    "l": 0.56879,
    "c": 0.19449,
    "h": 327
  },
  "luminance": 0.16069
}

Semantic roles & 50–950 ramp

primary
#AF41B1
secondary
#8BC38A
accent
#D65254
background
#FCF8FC
surface
#F9EFF8
border
#D2CAD1
text
#140A13
muted
#827C82

Preview Lab

Preview with #AF41B1

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

Preview Lab → · Contrast checker → · Palette generator →

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