#AF41C8#AF41C8

#AF41C8 is a mid, highly saturated purple. Relative luminance 0.171; OKLCH L 58.2% C 0.214 H 319.6°. Best body text is #FFFFFF at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#AF41C8
RGBrgb(175, 65, 200)
HSLhsl(289, 55%, 52%)
HSVhsv(289, 68%, 78%)
CMYKcmyk(12.5%, 67.5%, 0%, 21.6%)
CIE-LABlab(48.34, 63.07, -49.63)
CIE-LCHlch(48.34, 80.26, 321.80°)
OKLaboklab(58.21% 0.1634 -0.1389)
OKLCHoklch(58.21% 0.214 319.6)
XYZxyz(29.9935, 17.0661, 56.3466)
Luminance0.1706 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF41C8 #5AC841
analogous
#6C41C8 #AF41C8 #C8419E
triadic
#AF41C8 #C8AF41 #41C8AF
tetradic
#AF41C8 #C86C41 #5AC841 #419EC8
square
#AF41C8 #C86C41 #5AC841 #419EC8
split-complementary
#AF41C8 #9EC841 #41C86C
monochromatic
#60206F #892E9E #AF41C8 #C370D6 #D7A0E3

Accessibility & contrast

On white

4.76
#AF41C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.41
#AF41C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF41C8
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF41C8#FFFFFF#000000##FFFFFF
##AF41C81.004.764.414.76
#FFFFFF4.761.0021.001.00
#0000004.4121.001.0021.00
##FFFFFF4.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#096BCC
Deuteranopia (green-blind)
#4B77C5
Tritanopia (blue-blind)
#AF5980
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #af41c8;
/* rgb */ color: rgb(175, 65, 200);
/* oklch */ color: oklch(58.2% 0.214 319.6);
Tailwind
colors: {
  custom: {
    50: '#ca7ed9',
    500: '#af41c8',
    950: '#000000',
  },
}
SCSS
$custom: #af41c8;
$custom-light: #ca7ed9;
$custom-dark: #000000;
JSON
{
  "hex": "#af41c8",
  "rgb": {
    "r": 175,
    "g": 65,
    "b": 200
  },
  "hsl": {
    "h": 288.889,
    "s": 55.102,
    "l": 51.961
  },
  "oklch": {
    "l": 0.58211,
    "c": 0.21447,
    "h": 319.6
  },
  "luminance": 0.17065
}

Semantic roles & 50–950 ramp

primary
#AF41C8
secondary
#A0D095
accent
#DE4965
background
#FCF8FD
surface
#F9EFFB
border
#D2CAD4
text
#140B15
muted
#827C83

Preview Lab

Preview with #AF41C8

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

Preview Lab → · Contrast checker → · Palette generator →

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