#AF41B2#AF41B2

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

Color values

HEX#AF41B2
RGBrgb(175, 65, 178)
HSLhsl(298, 47%, 48%)
HSVhsv(298, 63%, 70%)
CMYKcmyk(1.7%, 63.5%, 0%, 30.2%)
CIE-LABlab(47.12, 59.05, -38.77)
CIE-LCHlch(47.12, 70.65, 326.71°)
OKLaboklab(56.93% 0.1632 -0.1073)
OKLCHoklch(56.93% 0.195 326.7)
XYZxyz(27.6049, 16.1107, 43.7665)
Luminance0.1611 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF41B2 #44B241
analogous
#7641B2 #AF41B2 #B2417C
triadic
#AF41B2 #B2AF41 #41B2AF
tetradic
#AF41B2 #B27641 #44B241 #417CB2
square
#AF41B2 #B27641 #44B241 #417CB2
split-complementary
#AF41B2 #7CB241 #41B276
monochromatic
#572058 #833185 #AF41B2 #C568C8 #D795D8

Accessibility & contrast

On white

4.97
#AF41B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.22
#AF41B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF41B2
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF41B2#FFFFFF#000000##FFFFFF
##AF41B21.004.974.224.97
#FFFFFF4.971.0021.001.00
#0000004.2221.001.0021.00
##FFFFFF4.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3067B5
Deuteranopia (green-blind)
#5A75AF
Tritanopia (blue-blind)
#B45174
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #af41b2;
/* rgb */ color: rgb(175, 65, 178);
/* oklch */ color: oklch(56.9% 0.195 326.7);
Tailwind
colors: {
  custom: {
    50: '#ca7dc9',
    500: '#af41b2',
    950: '#000000',
  },
}
SCSS
$custom: #af41b2;
$custom-light: #ca7dc9;
$custom-dark: #000000;
JSON
{
  "hex": "#af41b2",
  "rgb": {
    "r": 175,
    "g": 65,
    "b": 178
  },
  "hsl": {
    "h": 298.407,
    "s": 46.502,
    "l": 47.647
  },
  "oklch": {
    "l": 0.56934,
    "c": 0.19534,
    "h": 326.7
  },
  "luminance": 0.16109
}

Semantic roles & 50–950 ramp

primary
#AF41B2
secondary
#8CC48B
accent
#D65255
background
#FCF8FC
surface
#F9EFF8
border
#D2CAD1
text
#140A13
muted
#827C82

Preview Lab

Preview with #AF41B2

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

Preview Lab → · Contrast checker → · Palette generator →

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