#8A41E2#8A41E2

#8A41E2 is a mid, highly saturated violet. Relative luminance 0.147; OKLCH L 55.5% C 0.229 H 299.5°. Best body text is #FFFFFF at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#8A41E2
RGBrgb(138, 65, 226)
HSLhsl(267, 74%, 57%)
HSVhsv(267, 71%, 89%)
CMYKcmyk(38.9%, 71.2%, 0%, 11.4%)
CIE-LABlab(45.19, 61.24, -69.87)
CIE-LCHlch(45.19, 92.91, 311.24°)
OKLaboklab(55.48% 0.1127 -0.1995)
OKLCHoklch(55.48% 0.229 299.5)
XYZxyz(26.0956, 14.6746, 73.3944)
Luminance0.1467 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A41E2 #99E241
analogous
#4149E2 #8A41E2 #DB41E2
triadic
#8A41E2 #E28A41 #41E28A
tetradic
#8A41E2 #E24149 #99E241 #41E2DB
square
#8A41E2 #E24149 #99E241 #41E2DB
split-complementary
#8A41E2 #E2DB41 #49E241
monochromatic
#4F1692 #6B1EC7 #8A41E2 #AB76EA #CBABF2

Accessibility & contrast

On white

5.34
#8A41E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#8A41E2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A41E2
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A41E2#FFFFFF#000000##FFFFFF
##8A41E21.005.343.935.34
#FFFFFF5.341.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BE7
Deuteranopia (green-blind)
#006ADF
Tritanopia (blue-blind)
#75698E
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #8a41e2;
/* rgb */ color: rgb(138, 65, 226);
/* oklch */ color: oklch(55.5% 0.229 299.5);
Tailwind
colors: {
  custom: {
    50: '#b37cec',
    500: '#8a41e2',
    950: '#000000',
  },
}
SCSS
$custom: #8a41e2;
$custom-light: #b37cec;
$custom-dark: #000000;
JSON
{
  "hex": "#8a41e2",
  "rgb": {
    "r": 138,
    "g": 65,
    "b": 226
  },
  "hsl": {
    "h": 267.205,
    "s": 73.516,
    "l": 57.059
  },
  "oklch": {
    "l": 0.55477,
    "c": 0.22912,
    "h": 299.5
  },
  "luminance": 0.14675
}

Semantic roles & 50–950 ramp

primary
#8A41E2
secondary
#C2E09F
accent
#F0389C
background
#FBF7FE
surface
#F6EEFD
border
#D0C9D5
text
#120A16
muted
#817C84

Preview Lab

Preview with #8A41E2

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

Preview Lab → · Contrast checker → · Palette generator →

#8A41E2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva