#AF41B0#AF41B0

#AF41B0 is a mid, vivid purple. Relative luminance 0.160; OKLCH L 56.8% C 0.194 H 327.4°. Best body text is #FFFFFF at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#AF41B0
RGBrgb(175, 65, 176)
HSLhsl(299, 46%, 47%)
HSVhsv(299, 63%, 69%)
CMYKcmyk(0.6%, 63.1%, 0%, 31%)
CIE-LABlab(47.02, 58.70, -37.77)
CIE-LCHlch(47.02, 69.80, 327.25°)
OKLaboklab(56.82% 0.1631 -0.1043)
OKLCHoklch(56.82% 0.194 327.4)
XYZxyz(27.4055, 16.0309, 42.7167)
Luminance0.1603 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF41B0 #42B041
analogous
#7741B0 #AF41B0 #B0417A
triadic
#AF41B0 #B0AF41 #41B0AF
tetradic
#AF41B0 #B07741 #42B041 #417AB0
square
#AF41B0 #B07741 #42B041 #417AB0
split-complementary
#AF41B0 #7AB041 #41B077
monochromatic
#562057 #833083 #AF41B0 #C667C7 #D794D7

Accessibility & contrast

On white

4.99
#AF41B0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AF41B0
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF41B0#FFFFFF#000000##FFFFFF
##AF41B01.004.994.214.99
#FFFFFF4.991.0021.001.00
#0000004.2121.001.0021.00
##FFFFFF4.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3266B3
Deuteranopia (green-blind)
#5B74AD
Tritanopia (blue-blind)
#B45073
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #af41b0;
/* rgb */ color: rgb(175, 65, 176);
/* oklch */ color: oklch(56.8% 0.194 327.4);
Tailwind
colors: {
  custom: {
    50: '#ca7dc8',
    500: '#af41b0',
    950: '#000000',
  },
}
SCSS
$custom: #af41b0;
$custom-light: #ca7dc8;
$custom-dark: #000000;
JSON
{
  "hex": "#af41b0",
  "rgb": {
    "r": 175,
    "g": 65,
    "b": 176
  },
  "hsl": {
    "h": 299.459,
    "s": 46.058,
    "l": 47.255
  },
  "oklch": {
    "l": 0.56824,
    "c": 0.19364,
    "h": 327.4
  },
  "luminance": 0.16029
}

Semantic roles & 50–950 ramp

primary
#AF41B0
secondary
#8AC38A
accent
#D65253
background
#FCF8FC
surface
#F9EFF8
border
#D2CAD1
text
#140A13
muted
#827C82

Preview Lab

Preview with #AF41B0

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

Preview Lab → · Contrast checker → · Palette generator →

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