#AF41DC#AF41DC

#AF41DC is a mid, highly saturated purple. Relative luminance 0.181; OKLCH L 59.5% C 0.232 H 314.2°. Best body text is #000000 at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#AF41DC
RGBrgb(175, 65, 220)
HSLhsl(283, 69%, 56%)
HSVhsv(283, 70%, 86%)
CMYKcmyk(20.5%, 70.5%, 0%, 13.7%)
CIE-LABlab(49.57, 66.95, -59.12)
CIE-LCHlch(49.57, 89.32, 318.55°)
OKLaboklab(59.48% 0.162 -0.1667)
OKLCHoklch(59.48% 0.232 314.2)
XYZxyz(32.4856, 18.0629, 69.4715)
Luminance0.1806 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF41DC #6EDC41
analogous
#6141DC #AF41DC #DC41BB
triadic
#AF41DC #DCAF41 #41DCAF
tetradic
#AF41DC #DC6141 #6EDC41 #41BBDC
square
#AF41DC #DC6141 #6EDC41 #41BBDC
split-complementary
#AF41DC #BBDC41 #41DC61
monochromatic
#691989 #9023BD #AF41DC #C575E6 #DBA8EF

Accessibility & contrast

On white

4.55
#AF41DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.61
#AF41DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF41DC
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF41DC#FFFFFF#000000##000000
##AF41DC1.004.554.614.61
#FFFFFF4.551.0021.0021.00
#0000004.6121.001.001.00
##0000004.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#0070E0
Deuteranopia (green-blind)
#3879D9
Tritanopia (blue-blind)
#AB628A
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #af41dc;
/* rgb */ color: rgb(175, 65, 220);
/* oklch */ color: oklch(59.5% 0.232 314.2);
Tailwind
colors: {
  custom: {
    50: '#cb7fe8',
    500: '#af41dc',
    950: '#000000',
  },
}
SCSS
$custom: #af41dc;
$custom-light: #cb7fe8;
$custom-dark: #000000;
JSON
{
  "hex": "#af41dc",
  "rgb": {
    "r": 175,
    "g": 65,
    "b": 220
  },
  "hsl": {
    "h": 282.581,
    "s": 68.889,
    "l": 55.882
  },
  "oklch": {
    "l": 0.59483,
    "c": 0.23245,
    "h": 314.2
  },
  "luminance": 0.18062
}

Semantic roles & 50–950 ramp

primary
#AF41DC
secondary
#AFDD9C
accent
#EC3C6F
background
#FDF8FE
surface
#FAEFFD
border
#D3CAD5
text
#140B16
muted
#837C84

Preview Lab

Preview with #AF41DC

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

Preview Lab → · Contrast checker → · Palette generator →

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