#AF41C9#AF41C9

#AF41C9 is a mid, highly saturated purple. Relative luminance 0.171; OKLCH L 58.3% C 0.215 H 319.3°. Best body text is #FFFFFF at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#AF41C9
RGBrgb(175, 65, 201)
HSLhsl(289, 56%, 52%)
HSVhsv(289, 68%, 79%)
CMYKcmyk(12.9%, 67.7%, 0%, 21.2%)
CIE-LABlab(48.40, 63.26, -50.12)
CIE-LCHlch(48.40, 80.70, 321.61°)
OKLaboklab(58.27% 0.1634 -0.1403)
OKLCHoklch(58.27% 0.215 319.3)
XYZxyz(30.1107, 17.1130, 56.9641)
Luminance0.1711 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF41C9 #5BC941
analogous
#6B41C9 #AF41C9 #C9419F
triadic
#AF41C9 #C9AF41 #41C9AF
tetradic
#AF41C9 #C96B41 #5BC941 #419FC9
square
#AF41C9 #C96B41 #5BC941 #419FC9
split-complementary
#AF41C9 #9FC941 #41C96B
monochromatic
#612070 #8A2D9F #AF41C9 #C371D7 #D7A0E4

Accessibility & contrast

On white

4.75
#AF41C9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.42
#AF41C9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF41C9
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF41C9#FFFFFF#000000##FFFFFF
##AF41C91.004.754.424.75
#FFFFFF4.751.0021.001.00
#0000004.4221.001.0021.00
##FFFFFF4.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#046CCD
Deuteranopia (green-blind)
#4B77C6
Tritanopia (blue-blind)
#AF5A80
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #af41c9;
/* rgb */ color: rgb(175, 65, 201);
/* oklch */ color: oklch(58.3% 0.215 319.3);
Tailwind
colors: {
  custom: {
    50: '#ca7eda',
    500: '#af41c9',
    950: '#000000',
  },
}
SCSS
$custom: #af41c9;
$custom-light: #ca7eda;
$custom-dark: #000000;
JSON
{
  "hex": "#af41c9",
  "rgb": {
    "r": 175,
    "g": 65,
    "b": 201
  },
  "hsl": {
    "h": 288.529,
    "s": 55.738,
    "l": 52.157
  },
  "oklch": {
    "l": 0.58272,
    "c": 0.21535,
    "h": 319.3
  },
  "luminance": 0.17112
}

Semantic roles & 50–950 ramp

primary
#AF41C9
secondary
#A1D195
accent
#DF4965
background
#FCF8FD
surface
#F9EFFB
border
#D2CAD4
text
#140B15
muted
#827C83

Preview Lab

Preview with #AF41C9

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

Preview Lab → · Contrast checker → · Palette generator →

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