#AF41D3#AF41D3

#AF41D3 is a mid, highly saturated purple. Relative luminance 0.176; OKLCH L 58.9% C 0.224 H 316.5°. Best body text is #FFFFFF at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#AF41D3
RGBrgb(175, 65, 211)
HSLhsl(285, 62%, 54%)
HSVhsv(285, 69%, 83%)
CMYKcmyk(17.1%, 69.2%, 0%, 17.3%)
CIE-LABlab(49.01, 65.18, -54.90)
CIE-LCHlch(49.01, 85.22, 319.89°)
OKLaboklab(58.9% 0.1628 -0.1543)
OKLCHoklch(58.9% 0.224 316.5)
XYZxyz(31.3256, 17.5989, 63.3622)
Luminance0.1760 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF41D3 #65D341
analogous
#6641D3 #AF41D3 #D341AE
triadic
#AF41D3 #D3AF41 #41D3AF
tetradic
#AF41D3 #D36641 #65D341 #41AED3
square
#AF41D3 #D36641 #65D341 #41AED3
split-complementary
#AF41D3 #AED341 #41D366
monochromatic
#651D7D #8D28AE #AF41D3 #C473DF #D9A4EA

Accessibility & contrast

On white

4.65
#AF41D3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.52
#AF41D3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #AF41D3
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF41D3#FFFFFF#000000##FFFFFF
##AF41D31.004.654.524.65
#FFFFFF4.651.0021.001.00
#0000004.5221.001.0021.00
##FFFFFF4.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ED7
Deuteranopia (green-blind)
#4278D0
Tritanopia (blue-blind)
#AD5E86
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #af41d3;
/* rgb */ color: rgb(175, 65, 211);
/* oklch */ color: oklch(58.9% 0.224 316.5);
Tailwind
colors: {
  custom: {
    50: '#cb7fe1',
    500: '#af41d3',
    950: '#000000',
  },
}
SCSS
$custom: #af41d3;
$custom-light: #cb7fe1;
$custom-dark: #000000;
JSON
{
  "hex": "#af41d3",
  "rgb": {
    "r": 175,
    "g": 65,
    "b": 211
  },
  "hsl": {
    "h": 285.205,
    "s": 62.393,
    "l": 54.118
  },
  "oklch": {
    "l": 0.58898,
    "c": 0.2243,
    "h": 316.5
  },
  "luminance": 0.17598
}

Semantic roles & 50–950 ramp

primary
#AF41D3
secondary
#A8D799
accent
#E5426B
background
#FCF8FD
surface
#F9EFFB
border
#D2CAD4
text
#140B15
muted
#827C83

Preview Lab

Preview with #AF41D3

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

Preview Lab → · Contrast checker → · Palette generator →

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