#AF41E9#AF41E9

#AF41E9 is a mid, highly saturated violet. Relative luminance 0.188; OKLCH L 60.4% C 0.244 H 311.0°. Best body text is #000000 at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#AF41E9
RGBrgb(175, 65, 233)
HSLhsl(279, 79%, 58%)
HSVhsv(279, 72%, 91%)
CMYKcmyk(24.9%, 72.1%, 0%, 8.6%)
CIE-LABlab(50.43, 69.57, -65.11)
CIE-LCHlch(50.43, 95.28, 316.90°)
OKLaboklab(60.36% 0.1604 -0.1843)
OKLCHoklch(60.36% 0.244 311)
XYZxyz(34.2747, 18.7786, 78.8941)
Luminance0.1878 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF41E9 #7BE941
analogous
#5B41E9 #AF41E9 #E941CF
triadic
#AF41E9 #E9AF41 #41E9AF
tetradic
#AF41E9 #E95B41 #7BE941 #41CFE9
square
#AF41E9 #E95B41 #7BE941 #41CFE9
split-complementary
#AF41E9 #CFE941 #41E95B
monochromatic
#6D129D #9319D4 #AF41E9 #C678EF #DDAFF6

Accessibility & contrast

On white

4.42
#AF41E9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.76
#AF41E9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF41E9
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF41E9#FFFFFF#000000##000000
##AF41E91.004.424.764.76
#FFFFFF4.421.0021.0021.00
#0000004.7621.001.001.00
##0000004.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#0073EE
Deuteranopia (green-blind)
#237AE5
Tritanopia (blue-blind)
#A76792
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #af41e9;
/* rgb */ color: rgb(175, 65, 233);
/* oklch */ color: oklch(60.4% 0.244 311.0);
Tailwind
colors: {
  custom: {
    50: '#cc7ff1',
    500: '#af41e9',
    950: '#000000',
  },
}
SCSS
$custom: #af41e9;
$custom-light: #cc7ff1;
$custom-dark: #000000;
JSON
{
  "hex": "#af41e9",
  "rgb": {
    "r": 175,
    "g": 65,
    "b": 233
  },
  "hsl": {
    "h": 279.286,
    "s": 79.245,
    "l": 58.431
  },
  "oklch": {
    "l": 0.60362,
    "c": 0.24428,
    "h": 311
  },
  "luminance": 0.18778
}

Semantic roles & 50–950 ramp

primary
#AF41E9
secondary
#B9E4A2
accent
#F63276
background
#FDF8FE
surface
#FAEFFD
border
#D3CAD5
text
#140B17
muted
#837C85

Preview Lab

Preview with #AF41E9

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

Preview Lab → · Contrast checker → · Palette generator →

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