#AF41AB#AF41AB

#AF41AB is a mid, vivid purple. Relative luminance 0.158; OKLCH L 56.6% C 0.189 H 329.2°. Best body text is #FFFFFF at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#AF41AB
RGBrgb(175, 65, 171)
HSLhsl(302, 46%, 47%)
HSVhsv(302, 63%, 69%)
CMYKcmyk(0%, 62.9%, 2.3%, 31.4%)
CIE-LABlab(46.76, 57.84, -35.22)
CIE-LCHlch(46.76, 67.72, 328.66°)
OKLaboklab(56.56% 0.1628 -0.097)
OKLCHoklch(56.56% 0.189 329.2)
XYZxyz(26.9199, 15.8367, 40.1591)
Luminance0.1583 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF41AB #41AF45
analogous
#7C41AF #AF41AB #AF4174
triadic
#AF41AB #ABAF41 #41ABAF
tetradic
#AF41AB #AF7C41 #41AF45 #4174AF
square
#AF41AB #AF7C41 #41AF45 #4174AF
split-complementary
#AF41AB #74AF41 #41AF7C
monochromatic
#562054 #82307F #AF41AB #C667C3 #D793D5

Accessibility & contrast

On white

5.04
#AF41AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#AF41AB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF41AB
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF41AB#FFFFFF#000000##FFFFFF
##AF41AB1.005.044.175.04
#FFFFFF5.041.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3665AE
Deuteranopia (green-blind)
#5D74A8
Tritanopia (blue-blind)
#B54E70
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #af41ab;
/* rgb */ color: rgb(175, 65, 171);
/* oklch */ color: oklch(56.6% 0.189 329.2);
Tailwind
colors: {
  custom: {
    50: '#ca7dc4',
    500: '#af41ab',
    950: '#000000',
  },
}
SCSS
$custom: #af41ab;
$custom-light: #ca7dc4;
$custom-dark: #000000;
JSON
{
  "hex": "#af41ab",
  "rgb": {
    "r": 175,
    "g": 65,
    "b": 171
  },
  "hsl": {
    "h": 302.182,
    "s": 45.833,
    "l": 47.059
  },
  "oklch": {
    "l": 0.56556,
    "c": 0.18948,
    "h": 329.2
  },
  "luminance": 0.15835
}

Semantic roles & 50–950 ramp

primary
#AF41AB
secondary
#89C28B
accent
#D55752
background
#FCF8FC
surface
#F9EFF8
border
#D2CAD1
text
#140A13
muted
#827C82

Preview Lab

Preview with #AF41AB

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

Preview Lab → · Contrast checker → · Palette generator →

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