#AF41DB#AF41DB

#AF41DB is a mid, highly saturated purple. Relative luminance 0.180; OKLCH L 59.4% C 0.232 H 314.4°. Best body text is #000000 at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#AF41DB
RGBrgb(175, 65, 219)
HSLhsl(283, 68%, 56%)
HSVhsv(283, 70%, 86%)
CMYKcmyk(20.1%, 70.3%, 0%, 14.1%)
CIE-LABlab(49.51, 66.75, -58.66)
CIE-LCHlch(49.51, 88.86, 318.69°)
OKLaboklab(59.42% 0.1621 -0.1653)
OKLCHoklch(59.42% 0.232 314.4)
XYZxyz(32.3535, 18.0101, 68.7761)
Luminance0.1801 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF41DB #6DDB41
analogous
#6241DB #AF41DB #DB41BA
triadic
#AF41DB #DBAF41 #41DBAF
tetradic
#AF41DB #DB6241 #6DDB41 #41BADB
square
#AF41DB #DB6241 #6DDB41 #41BADB
split-complementary
#AF41DB #BADB41 #41DB62
monochromatic
#681A88 #9023BB #AF41DB #C574E5 #DAA8EE

Accessibility & contrast

On white

4.56
#AF41DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.60
#AF41DB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF41DB
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF41DB#FFFFFF#000000##000000
##AF41DB1.004.564.604.60
#FFFFFF4.561.0021.0021.00
#0000004.6021.001.001.00
##0000004.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#0070DF
Deuteranopia (green-blind)
#3978D8
Tritanopia (blue-blind)
#AB618A
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #af41db;
/* rgb */ color: rgb(175, 65, 219);
/* oklch */ color: oklch(59.4% 0.232 314.4);
Tailwind
colors: {
  custom: {
    50: '#cb7fe7',
    500: '#af41db',
    950: '#000000',
  },
}
SCSS
$custom: #af41db;
$custom-light: #cb7fe7;
$custom-dark: #000000;
JSON
{
  "hex": "#af41db",
  "rgb": {
    "r": 175,
    "g": 65,
    "b": 219
  },
  "hsl": {
    "h": 282.857,
    "s": 68.142,
    "l": 55.686
  },
  "oklch": {
    "l": 0.59417,
    "c": 0.23154,
    "h": 314.4
  },
  "luminance": 0.18009
}

Semantic roles & 50–950 ramp

primary
#AF41DB
secondary
#AEDC9C
accent
#EB3D6F
background
#FDF8FE
surface
#FAEFFC
border
#D3CAD5
text
#140B16
muted
#837C84

Preview Lab

Preview with #AF41DB

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

Preview Lab → · Contrast checker → · Palette generator →

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