#AF41D2#AF41D2

#AF41D2 is a mid, highly saturated purple. Relative luminance 0.175; OKLCH L 58.8% C 0.223 H 316.8°. Best body text is #FFFFFF at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#AF41D2
RGBrgb(175, 65, 210)
HSLhsl(286, 62%, 54%)
HSVhsv(286, 69%, 82%)
CMYKcmyk(16.7%, 69%, 0%, 17.6%)
CIE-LABlab(48.94, 64.98, -54.42)
CIE-LCHlch(48.94, 84.76, 320.05°)
OKLaboklab(58.84% 0.1629 -0.1529)
OKLCHoklch(58.84% 0.223 316.8)
XYZxyz(31.2006, 17.5490, 62.7041)
Luminance0.1755 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF41D2 #64D241
analogous
#6741D2 #AF41D2 #D241AD
triadic
#AF41D2 #D2AF41 #41D2AF
tetradic
#AF41D2 #D26741 #64D241 #41ADD2
square
#AF41D2 #D26741 #64D241 #41ADD2
split-complementary
#AF41D2 #ADD241 #41D267
monochromatic
#651D7B #8D29AD #AF41D2 #C472DE #D9A4E9

Accessibility & contrast

On white

4.66
#AF41D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.51
#AF41D2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #AF41D2
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF41D2#FFFFFF#000000##FFFFFF
##AF41D21.004.664.514.66
#FFFFFF4.661.0021.001.00
#0000004.5121.001.0021.00
##FFFFFF4.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ED6
Deuteranopia (green-blind)
#4378CF
Tritanopia (blue-blind)
#AD5E85
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #af41d2;
/* rgb */ color: rgb(175, 65, 210);
/* oklch */ color: oklch(58.8% 0.223 316.8);
Tailwind
colors: {
  custom: {
    50: '#cb7fe0',
    500: '#af41d2',
    950: '#000000',
  },
}
SCSS
$custom: #af41d2;
$custom-light: #cb7fe0;
$custom-dark: #000000;
JSON
{
  "hex": "#af41d2",
  "rgb": {
    "r": 175,
    "g": 65,
    "b": 210
  },
  "hsl": {
    "h": 285.517,
    "s": 61.702,
    "l": 53.922
  },
  "oklch": {
    "l": 0.58835,
    "c": 0.22342,
    "h": 316.8
  },
  "luminance": 0.17548
}

Semantic roles & 50–950 ramp

primary
#AF41D2
secondary
#A7D698
accent
#E5436A
background
#FCF8FD
surface
#F9EFFB
border
#D2CAD4
text
#140B15
muted
#827C83

Preview Lab

Preview with #AF41D2

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

Preview Lab → · Contrast checker → · Palette generator →

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