#AF41B7#AF41B7

#AF41B7 is a mid, vivid purple. Relative luminance 0.163; OKLCH L 57.2% C 0.200 H 325.0°. Best body text is #FFFFFF at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#AF41B7
RGBrgb(175, 65, 183)
HSLhsl(296, 48%, 49%)
HSVhsv(296, 64%, 72%)
CMYKcmyk(4.4%, 64.5%, 0%, 28.2%)
CIE-LABlab(47.39, 59.94, -41.28)
CIE-LCHlch(47.39, 72.78, 325.44°)
OKLaboklab(57.21% 0.1635 -0.1145)
OKLCHoklch(57.21% 0.2 325)
XYZxyz(28.1161, 16.3151, 46.4588)
Luminance0.1631 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF41B7 #49B741
analogous
#7441B7 #AF41B7 #B74184
triadic
#AF41B7 #B7AF41 #41B7AF
tetradic
#AF41B7 #B77441 #49B741 #4184B7
square
#AF41B7 #B77441 #49B741 #4184B7
split-complementary
#AF41B7 #84B741 #41B774
monochromatic
#59215D #84318A #AF41B7 #C46BCA #D698DA

Accessibility & contrast

On white

4.93
#AF41B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.26
#AF41B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF41B7
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF41B7#FFFFFF#000000##FFFFFF
##AF41B71.004.934.264.93
#FFFFFF4.931.0021.001.00
#0000004.2621.001.0021.00
##FFFFFF4.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B68BA
Deuteranopia (green-blind)
#5775B4
Tritanopia (blue-blind)
#B35376
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #af41b7;
/* rgb */ color: rgb(175, 65, 183);
/* oklch */ color: oklch(57.2% 0.200 325.0);
Tailwind
colors: {
  custom: {
    50: '#ca7ecd',
    500: '#af41b7',
    950: '#000000',
  },
}
SCSS
$custom: #af41b7;
$custom-light: #ca7ecd;
$custom-dark: #000000;
JSON
{
  "hex": "#af41b7",
  "rgb": {
    "r": 175,
    "g": 65,
    "b": 183
  },
  "hsl": {
    "h": 295.932,
    "s": 47.581,
    "l": 48.627
  },
  "oklch": {
    "l": 0.57212,
    "c": 0.19959,
    "h": 325
  },
  "luminance": 0.16313
}

Semantic roles & 50–950 ramp

primary
#AF41B7
secondary
#91C68E
accent
#D7515A
background
#FCF8FC
surface
#F9EFF9
border
#D2CAD2
text
#140A13
muted
#827C82

Preview Lab

Preview with #AF41B7

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

Preview Lab → · Contrast checker → · Palette generator →

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