#AF41CD#AF41CD

#AF41CD is a mid, highly saturated purple. Relative luminance 0.173; OKLCH L 58.5% C 0.219 H 318.2°. Best body text is #FFFFFF at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#AF41CD
RGBrgb(175, 65, 205)
HSLhsl(287, 58%, 53%)
HSVhsv(287, 68%, 80%)
CMYKcmyk(14.6%, 68.3%, 0%, 19.6%)
CIE-LABlab(48.64, 64.02, -52.04)
CIE-LCHlch(48.64, 82.50, 320.89°)
OKLaboklab(58.52% 0.1632 -0.1459)
OKLCHoklch(58.52% 0.219 318.2)
XYZxyz(30.5874, 17.3037, 59.4745)
Luminance0.1730 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF41CD #5FCD41
analogous
#6941CD #AF41CD #CD41A5
triadic
#AF41CD #CDAF41 #41CDAF
tetradic
#AF41CD #CD6941 #5FCD41 #41A5CD
square
#AF41CD #CD6941 #5FCD41 #41A5CD
split-complementary
#AF41CD #A5CD41 #41CD69
monochromatic
#621F75 #8B2CA5 #AF41CD #C371DA #D8A2E6

Accessibility & contrast

On white

4.71
#AF41CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.46
#AF41CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF41CD
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF41CD#FFFFFF#000000##FFFFFF
##AF41CD1.004.714.464.71
#FFFFFF4.711.0021.001.00
#0000004.4621.001.0021.00
##FFFFFF4.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CD1
Deuteranopia (green-blind)
#4777CA
Tritanopia (blue-blind)
#AE5B82
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #af41cd;
/* rgb */ color: rgb(175, 65, 205);
/* oklch */ color: oklch(58.5% 0.219 318.2);
Tailwind
colors: {
  custom: {
    50: '#cb7edd',
    500: '#af41cd',
    950: '#000000',
  },
}
SCSS
$custom: #af41cd;
$custom-light: #cb7edd;
$custom-dark: #000000;
JSON
{
  "hex": "#af41cd",
  "rgb": {
    "r": 175,
    "g": 65,
    "b": 205
  },
  "hsl": {
    "h": 287.143,
    "s": 58.333,
    "l": 52.941
  },
  "oklch": {
    "l": 0.5852,
    "c": 0.21893,
    "h": 318.2
  },
  "luminance": 0.17302
}

Semantic roles & 50–950 ramp

primary
#AF41CD
secondary
#A4D397
accent
#E24668
background
#FCF8FD
surface
#F9EFFB
border
#D2CAD4
text
#140B15
muted
#827C83

Preview Lab

Preview with #AF41CD

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

Preview Lab → · Contrast checker → · Palette generator →

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