#AF41D7#AF41D7

#AF41D7 is a mid, highly saturated purple. Relative luminance 0.178; OKLCH L 59.2% C 0.228 H 315.5°. Best body text is #FFFFFF at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#AF41D7
RGBrgb(175, 65, 215)
HSLhsl(284, 65%, 55%)
HSVhsv(284, 70%, 84%)
CMYKcmyk(18.6%, 69.8%, 0%, 15.7%)
CIE-LABlab(49.26, 65.96, -56.78)
CIE-LCHlch(49.26, 87.03, 319.27°)
OKLaboklab(59.16% 0.1625 -0.1598)
OKLCHoklch(59.16% 0.228 315.5)
XYZxyz(31.8333, 17.8020, 66.0361)
Luminance0.1780 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF41D7 #69D741
analogous
#6441D7 #AF41D7 #D741B4
triadic
#AF41D7 #D7AF41 #41D7AF
tetradic
#AF41D7 #D76441 #69D741 #41B4D7
square
#AF41D7 #D76441 #69D741 #41B4D7
split-complementary
#AF41D7 #B4D741 #41D764
monochromatic
#671B82 #8F26B5 #AF41D7 #C474E2 #DAA6EC

Accessibility & contrast

On white

4.61
#AF41D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.56
#AF41D7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #AF41D7
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF41D7#FFFFFF#000000##FFFFFF
##AF41D71.004.614.564.61
#FFFFFF4.611.0021.001.00
#0000004.5621.001.0021.00
##FFFFFF4.611.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #af41d7;
/* rgb */ color: rgb(175, 65, 215);
/* oklch */ color: oklch(59.2% 0.228 315.5);
Tailwind
colors: {
  custom: {
    50: '#cb7fe4',
    500: '#af41d7',
    950: '#000000',
  },
}
SCSS
$custom: #af41d7;
$custom-light: #cb7fe4;
$custom-dark: #000000;
JSON
{
  "hex": "#af41d7",
  "rgb": {
    "r": 175,
    "g": 65,
    "b": 215
  },
  "hsl": {
    "h": 284,
    "s": 65.217,
    "l": 54.902
  },
  "oklch": {
    "l": 0.59156,
    "c": 0.22792,
    "h": 315.5
  },
  "luminance": 0.17801
}

Semantic roles & 50–950 ramp

primary
#AF41D7
secondary
#ABD99A
accent
#E8406D
background
#FCF8FE
surface
#F9EFFC
border
#D2CAD5
text
#140B16
muted
#827C84

Preview Lab

Preview with #AF41D7

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

Preview Lab → · Contrast checker → · Palette generator →

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