#AF41EA#AF41EA

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

Color values

HEX#AF41EA
RGBrgb(175, 65, 234)
HSLhsl(279, 80%, 59%)
HSVhsv(279, 72%, 92%)
CMYKcmyk(25.2%, 72.2%, 0%, 8.2%)
CIE-LABlab(50.49, 69.77, -65.56)
CIE-LCHlch(50.49, 95.74, 316.78°)
OKLaboklab(60.43% 0.1602 -0.1856)
OKLCHoklch(60.43% 0.245 310.8)
XYZxyz(34.4179, 18.8359, 79.6486)
Luminance0.1883 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF41EA #7CEA41
analogous
#5A41EA #AF41EA #EA41D1
triadic
#AF41EA #EAAF41 #41EAAF
tetradic
#AF41EA #EA5A41 #7CEA41 #41D1EA
square
#AF41EA #EA5A41 #7CEA41 #41D1EA
split-complementary
#AF41EA #D1EA41 #41EA5A
monochromatic
#6E129F #9418D6 #AF41EA #C678F0 #DDAFF6

Accessibility & contrast

On white

4.41
#AF41EA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.77
#AF41EA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF41EA
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF41EA#FFFFFF#000000##000000
##AF41EA1.004.414.774.77
#FFFFFF4.411.0021.0021.00
#0000004.7721.001.001.00
##0000004.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#0073EF
Deuteranopia (green-blind)
#217AE6
Tritanopia (blue-blind)
#A76892
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #af41ea;
/* rgb */ color: rgb(175, 65, 234);
/* oklch */ color: oklch(60.4% 0.245 310.8);
Tailwind
colors: {
  custom: {
    50: '#cc7ff2',
    500: '#af41ea',
    950: '#000000',
  },
}
SCSS
$custom: #af41ea;
$custom-light: #cc7ff2;
$custom-dark: #000000;
JSON
{
  "hex": "#af41ea",
  "rgb": {
    "r": 175,
    "g": 65,
    "b": 234
  },
  "hsl": {
    "h": 279.053,
    "s": 80.095,
    "l": 58.627
  },
  "oklch": {
    "l": 0.60431,
    "c": 0.24519,
    "h": 310.8
  },
  "luminance": 0.18835
}

Semantic roles & 50–950 ramp

primary
#AF41EA
secondary
#B9E5A2
accent
#F73176
background
#FDF8FE
surface
#FAEFFD
border
#D3CAD5
text
#140B17
muted
#837C85

Preview Lab

Preview with #AF41EA

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

Preview Lab → · Contrast checker → · Palette generator →

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