#AF41AF#AF41AF

#AF41AF is a mid, vivid purple. Relative luminance 0.160; OKLCH L 56.8% C 0.193 H 327.7°. Best body text is #FFFFFF at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#AF41AF
RGBrgb(175, 65, 175)
HSLhsl(300, 46%, 47%)
HSVhsv(300, 63%, 69%)
CMYKcmyk(0%, 62.9%, 0%, 31.4%)
CIE-LABlab(46.96, 58.53, -37.26)
CIE-LCHlch(46.96, 69.38, 327.52°)
OKLaboklab(56.77% 0.1631 -0.1029)
OKLCHoklch(56.77% 0.193 327.7)
XYZxyz(27.3070, 15.9915, 42.1975)
Luminance0.1599 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF41AF #41AF41
analogous
#7841AF #AF41AF #AF4178
triadic
#AF41AF #AFAF41 #41AFAF
tetradic
#AF41AF #AF7841 #41AF41 #4178AF
square
#AF41AF #AF7841 #41AF41 #4178AF
split-complementary
#AF41AF #78AF41 #41AF78
monochromatic
#562056 #823082 #AF41AF #C667C6 #D793D7

Accessibility & contrast

On white

5.00
#AF41AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.20
#AF41AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF41AF
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF41AF#FFFFFF#000000##FFFFFF
##AF41AF1.005.004.205.00
#FFFFFF5.001.0021.001.00
#0000004.2021.001.0021.00
##FFFFFF5.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3366B2
Deuteranopia (green-blind)
#5B74AC
Tritanopia (blue-blind)
#B44F72
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #af41af;
/* rgb */ color: rgb(175, 65, 175);
/* oklch */ color: oklch(56.8% 0.193 327.7);
Tailwind
colors: {
  custom: {
    50: '#ca7dc7',
    500: '#af41af',
    950: '#000000',
  },
}
SCSS
$custom: #af41af;
$custom-light: #ca7dc7;
$custom-dark: #000000;
JSON
{
  "hex": "#af41af",
  "rgb": {
    "r": 175,
    "g": 65,
    "b": 175
  },
  "hsl": {
    "h": 300,
    "s": 45.833,
    "l": 47.059
  },
  "oklch": {
    "l": 0.5677,
    "c": 0.19281,
    "h": 327.7
  },
  "luminance": 0.1599
}

Semantic roles & 50–950 ramp

primary
#AF41AF
secondary
#89C289
accent
#D55252
background
#FCF8FC
surface
#F9EFF8
border
#D2CAD1
text
#140A13
muted
#827C82

Preview Lab

Preview with #AF41AF

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

Preview Lab → · Contrast checker → · Palette generator →

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