#AF41D4#AF41D4

#AF41D4 is a mid, highly saturated purple. Relative luminance 0.176; OKLCH L 59.0% C 0.225 H 316.3°. Best body text is #FFFFFF at 4.64:1 contrast (WCAG AA passes).

Color values

HEX#AF41D4
RGBrgb(175, 65, 212)
HSLhsl(285, 63%, 54%)
HSVhsv(285, 69%, 83%)
CMYKcmyk(17.5%, 69.3%, 0%, 16.9%)
CIE-LABlab(49.07, 65.37, -55.37)
CIE-LCHlch(49.07, 85.67, 319.74°)
OKLaboklab(58.96% 0.1627 -0.1557)
OKLCHoklch(58.96% 0.225 316.3)
XYZxyz(31.4513, 17.6492, 64.0245)
Luminance0.1765 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF41D4 #66D441
analogous
#6641D4 #AF41D4 #D441B0
triadic
#AF41D4 #D4AF41 #41D4AF
tetradic
#AF41D4 #D46641 #66D441 #41B0D4
square
#AF41D4 #D46641 #66D441 #41B0D4
split-complementary
#AF41D4 #B0D441 #41D466
monochromatic
#661D7E #8E28B0 #AF41D4 #C473DF #D9A5EB

Accessibility & contrast

On white

4.64
#AF41D4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.53
#AF41D4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #AF41D4
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF41D4#FFFFFF#000000##FFFFFF
##AF41D41.004.644.534.64
#FFFFFF4.641.0021.001.00
#0000004.5321.001.0021.00
##FFFFFF4.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ED8
Deuteranopia (green-blind)
#4178D1
Tritanopia (blue-blind)
#AD5E86
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #af41d4;
/* rgb */ color: rgb(175, 65, 212);
/* oklch */ color: oklch(59.0% 0.225 316.3);
Tailwind
colors: {
  custom: {
    50: '#cb7fe2',
    500: '#af41d4',
    950: '#000000',
  },
}
SCSS
$custom: #af41d4;
$custom-light: #cb7fe2;
$custom-dark: #000000;
JSON
{
  "hex": "#af41d4",
  "rgb": {
    "r": 175,
    "g": 65,
    "b": 212
  },
  "hsl": {
    "h": 284.898,
    "s": 63.09,
    "l": 54.314
  },
  "oklch": {
    "l": 0.58962,
    "c": 0.22521,
    "h": 316.3
  },
  "luminance": 0.17648
}

Semantic roles & 50–950 ramp

primary
#AF41D4
secondary
#A9D899
accent
#E6426B
background
#FCF8FD
surface
#F9EFFB
border
#D2CAD4
text
#140B15
muted
#827C83

Preview Lab

Preview with #AF41D4

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

Preview Lab → · Contrast checker → · Palette generator →

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