#AF41B8#AF41B8

#AF41B8 is a mid, highly saturated purple. Relative luminance 0.164; OKLCH L 57.3% C 0.200 H 324.6°. Best body text is #FFFFFF at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#AF41B8
RGBrgb(175, 65, 184)
HSLhsl(295, 48%, 49%)
HSVhsv(295, 65%, 72%)
CMYKcmyk(4.9%, 64.7%, 0%, 27.8%)
CIE-LABlab(47.44, 60.12, -41.78)
CIE-LCHlch(47.44, 73.21, 325.20°)
OKLaboklab(57.27% 0.1635 -0.116)
OKLCHoklch(57.27% 0.2 324.6)
XYZxyz(28.2205, 16.3569, 47.0089)
Luminance0.1636 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF41B8 #4AB841
analogous
#7441B8 #AF41B8 #B84186
triadic
#AF41B8 #B8AF41 #41B8AF
tetradic
#AF41B8 #B87441 #4AB841 #4186B8
square
#AF41B8 #B87441 #4AB841 #4186B8
split-complementary
#AF41B8 #86B841 #41B874
monochromatic
#59215E #84318B #AF41B8 #C46BCB #D699DB

Accessibility & contrast

On white

4.92
#AF41B8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.27
#AF41B8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF41B8
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF41B8#FFFFFF#000000##FFFFFF
##AF41B81.004.924.274.92
#FFFFFF4.921.0021.001.00
#0000004.2721.001.0021.00
##FFFFFF4.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A68BC
Deuteranopia (green-blind)
#5675B5
Tritanopia (blue-blind)
#B35377
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #af41b8;
/* rgb */ color: rgb(175, 65, 184);
/* oklch */ color: oklch(57.3% 0.200 324.6);
Tailwind
colors: {
  custom: {
    50: '#ca7ece',
    500: '#af41b8',
    950: '#000000',
  },
}
SCSS
$custom: #af41b8;
$custom-light: #ca7ece;
$custom-dark: #000000;
JSON
{
  "hex": "#af41b8",
  "rgb": {
    "r": 175,
    "g": 65,
    "b": 184
  },
  "hsl": {
    "h": 295.462,
    "s": 47.791,
    "l": 48.824
  },
  "oklch": {
    "l": 0.57269,
    "c": 0.20045,
    "h": 324.6
  },
  "luminance": 0.16355
}

Semantic roles & 50–950 ramp

primary
#AF41B8
secondary
#92C78E
accent
#D7505B
background
#FCF8FC
surface
#F9EFF9
border
#D2CAD2
text
#140A13
muted
#827C82

Preview Lab

Preview with #AF41B8

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

Preview Lab → · Contrast checker → · Palette generator →

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