#8A41B1#8A41B1

#8A41B1 is a mid, vivid violet. Relative luminance 0.124; OKLCH L 52.0% C 0.178 H 311.8°. Best body text is #FFFFFF at 6.05:1 contrast (WCAG AA passes).

Color values

HEX#8A41B1
RGBrgb(138, 65, 177)
HSLhsl(279, 46%, 47%)
HSVhsv(279, 63%, 69%)
CMYKcmyk(22%, 63.3%, 0%, 30.6%)
CIE-LABlab(41.78, 49.85, -47.00)
CIE-LCHlch(41.78, 68.51, 316.68°)
OKLaboklab(51.96% 0.1184 -0.1323)
OKLCHoklch(51.96% 0.178 311.8)
XYZxyz(20.3059, 12.3587, 42.9022)
Luminance0.1236 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A41B1 #68B141
analogous
#5241B1 #8A41B1 #B141A0
triadic
#8A41B1 #B18A41 #41B18A
tetradic
#8A41B1 #B15241 #68B141 #41A0B1
square
#8A41B1 #B15241 #68B141 #41A0B1
split-complementary
#8A41B1 #A0B141 #41B152
monochromatic
#442057 #673184 #8A41B1 #A668C7 #C095D8

Accessibility & contrast

On white

6.05
#8A41B1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#8A41B1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A41B1
6.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A41B1#FFFFFF#000000##FFFFFF
##8A41B11.006.053.476.05
#FFFFFF6.051.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E5FB4
Deuteranopia (green-blind)
#3764AE
Tritanopia (blue-blind)
#855673
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #8a41b1;
/* rgb */ color: rgb(138, 65, 177);
/* oklch */ color: oklch(52.0% 0.178 311.8);
Tailwind
colors: {
  custom: {
    50: '#af7ac9',
    500: '#8a41b1',
    950: '#000000',
  },
}
SCSS
$custom: #8a41b1;
$custom-light: #af7ac9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a41b1",
  "rgb": {
    "r": 138,
    "g": 65,
    "b": 177
  },
  "hsl": {
    "h": 279.107,
    "s": 46.281,
    "l": 47.451
  },
  "oklch": {
    "l": 0.51964,
    "c": 0.17756,
    "h": 311.8
  },
  "luminance": 0.12358
}

Semantic roles & 50–950 ramp

primary
#8A41B1
secondary
#9EC38A
accent
#D65280
background
#FBF7FC
surface
#F6EEF8
border
#D0C9D1
text
#110913
muted
#807B82

Preview Lab

Preview with #8A41B1

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

Preview Lab → · Contrast checker → · Palette generator →

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