#AF41DF#AF41DF

#AF41DF is a mid, highly saturated purple. Relative luminance 0.182; OKLCH L 59.7% C 0.235 H 313.4°. Best body text is #000000 at 4.64:1 contrast (WCAG AA passes).

Color values

HEX#AF41DF
RGBrgb(175, 65, 223)
HSLhsl(282, 71%, 56%)
HSVhsv(282, 71%, 87%)
CMYKcmyk(21.5%, 70.9%, 0%, 12.5%)
CIE-LABlab(49.77, 67.54, -60.52)
CIE-LCHlch(49.77, 90.69, 318.14°)
OKLaboklab(59.68% 0.1617 -0.1708)
OKLCHoklch(59.68% 0.235 313.4)
XYZxyz(32.8865, 18.2233, 71.5828)
Luminance0.1822 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF41DF #71DF41
analogous
#6041DF #AF41DF #DF41C0
triadic
#AF41DF #DFAF41 #41DFAF
tetradic
#AF41DF #DF6041 #71DF41 #41C0DF
square
#AF41DF #DF6041 #71DF41 #41C0DF
split-complementary
#AF41DF #C0DF41 #41DF60
monochromatic
#6A188E #9121C2 #AF41DF #C575E8 #DBAAF1

Accessibility & contrast

On white

4.52
#AF41DF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.64
#AF41DF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF41DF
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF41DF#FFFFFF#000000##000000
##AF41DF1.004.524.644.64
#FFFFFF4.521.0021.0021.00
#0000004.6421.001.001.00
##0000004.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#0071E4
Deuteranopia (green-blind)
#3479DC
Tritanopia (blue-blind)
#AA638C
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #af41df;
/* rgb */ color: rgb(175, 65, 223);
/* oklch */ color: oklch(59.7% 0.235 313.4);
Tailwind
colors: {
  custom: {
    50: '#cb7fea',
    500: '#af41df',
    950: '#000000',
  },
}
SCSS
$custom: #af41df;
$custom-light: #cb7fea;
$custom-dark: #000000;
JSON
{
  "hex": "#af41df",
  "rgb": {
    "r": 175,
    "g": 65,
    "b": 223
  },
  "hsl": {
    "h": 281.772,
    "s": 71.171,
    "l": 56.471
  },
  "oklch": {
    "l": 0.59683,
    "c": 0.23517,
    "h": 313.4
  },
  "luminance": 0.18222
}

Semantic roles & 50–950 ramp

primary
#AF41DF
secondary
#B1DE9D
accent
#EE3A71
background
#FDF8FE
surface
#FAEFFD
border
#D3CAD5
text
#140B16
muted
#837C84

Preview Lab

Preview with #AF41DF

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

Preview Lab → · Contrast checker → · Palette generator →

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