#AF41C7#AF41C7

#AF41C7 is a mid, highly saturated purple. Relative luminance 0.170; OKLCH L 58.1% C 0.214 H 319.9°. Best body text is #FFFFFF at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#AF41C7
RGBrgb(175, 65, 199)
HSLhsl(289, 54%, 52%)
HSVhsv(289, 67%, 78%)
CMYKcmyk(12.1%, 67.3%, 0%, 22%)
CIE-LABlab(48.28, 62.88, -49.15)
CIE-LCHlch(48.28, 79.81, 321.99°)
OKLaboklab(58.15% 0.1635 -0.1375)
OKLCHoklch(58.15% 0.214 319.9)
XYZxyz(29.8770, 17.0195, 55.7331)
Luminance0.1702 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF41C7 #59C741
analogous
#6C41C7 #AF41C7 #C7419C
triadic
#AF41C7 #C7AF41 #41C7AF
tetradic
#AF41C7 #C76C41 #59C741 #419CC7
square
#AF41C7 #C76C41 #59C741 #419CC7
split-complementary
#AF41C7 #9CC741 #41C76C
monochromatic
#60206D #892E9D #AF41C7 #C370D5 #D7A0E3

Accessibility & contrast

On white

4.77
#AF41C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.40
#AF41C7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF41C7
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF41C7#FFFFFF#000000##FFFFFF
##AF41C71.004.774.404.77
#FFFFFF4.771.0021.001.00
#0000004.4021.001.0021.00
##FFFFFF4.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D6BCB
Deuteranopia (green-blind)
#4C76C4
Tritanopia (blue-blind)
#B0597F
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #af41c7;
/* rgb */ color: rgb(175, 65, 199);
/* oklch */ color: oklch(58.1% 0.214 319.9);
Tailwind
colors: {
  custom: {
    50: '#ca7ed9',
    500: '#af41c7',
    950: '#000000',
  },
}
SCSS
$custom: #af41c7;
$custom-light: #ca7ed9;
$custom-dark: #000000;
JSON
{
  "hex": "#af41c7",
  "rgb": {
    "r": 175,
    "g": 65,
    "b": 199
  },
  "hsl": {
    "h": 289.254,
    "s": 54.472,
    "l": 51.765
  },
  "oklch": {
    "l": 0.5815,
    "c": 0.21358,
    "h": 319.9
  },
  "luminance": 0.17018
}

Semantic roles & 50–950 ramp

primary
#AF41C7
secondary
#9FCF95
accent
#DE4A64
background
#FCF8FD
surface
#F9EFFA
border
#D2CAD3
text
#140B15
muted
#827C83

Preview Lab

Preview with #AF41C7

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

Preview Lab → · Contrast checker → · Palette generator →

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