#AF41D8#AF41D8

#AF41D8 is a mid, highly saturated purple. Relative luminance 0.179; OKLCH L 59.2% C 0.229 H 315.2°. Best body text is #FFFFFF at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#AF41D8
RGBrgb(175, 65, 216)
HSLhsl(284, 66%, 55%)
HSVhsv(284, 70%, 85%)
CMYKcmyk(19%, 69.9%, 0%, 15.3%)
CIE-LABlab(49.32, 66.16, -57.25)
CIE-LCHlch(49.32, 87.49, 319.13°)
OKLaboklab(59.22% 0.1624 -0.1612)
OKLCHoklch(59.22% 0.229 315.2)
XYZxyz(31.9622, 17.8536, 66.7149)
Luminance0.1785 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF41D8 #6AD841
analogous
#6441D8 #AF41D8 #D841B5
triadic
#AF41D8 #D8AF41 #41D8AF
tetradic
#AF41D8 #D86441 #6AD841 #41B5D8
square
#AF41D8 #D86441 #6AD841 #41B5D8
split-complementary
#AF41D8 #B5D841 #41D864
monochromatic
#671B84 #8F25B6 #AF41D8 #C474E2 #DAA7ED

Accessibility & contrast

On white

4.59
#AF41D8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.57
#AF41D8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #AF41D8
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF41D8#FFFFFF#000000##FFFFFF
##AF41D81.004.594.574.59
#FFFFFF4.591.0021.001.00
#0000004.5721.001.0021.00
##FFFFFF4.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FDC
Deuteranopia (green-blind)
#3D78D5
Tritanopia (blue-blind)
#AC6088
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #af41d8;
/* rgb */ color: rgb(175, 65, 216);
/* oklch */ color: oklch(59.2% 0.229 315.2);
Tailwind
colors: {
  custom: {
    50: '#cb7fe5',
    500: '#af41d8',
    950: '#000000',
  },
}
SCSS
$custom: #af41d8;
$custom-light: #cb7fe5;
$custom-dark: #000000;
JSON
{
  "hex": "#af41d8",
  "rgb": {
    "r": 175,
    "g": 65,
    "b": 216
  },
  "hsl": {
    "h": 283.709,
    "s": 65.939,
    "l": 55.098
  },
  "oklch": {
    "l": 0.59221,
    "c": 0.22882,
    "h": 315.2
  },
  "luminance": 0.17852
}

Semantic roles & 50–950 ramp

primary
#AF41D8
secondary
#ACDA9B
accent
#E93F6D
background
#FCF8FE
surface
#F9EFFC
border
#D2CAD5
text
#140B16
muted
#827C84

Preview Lab

Preview with #AF41D8

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

Preview Lab → · Contrast checker → · Palette generator →

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