#8A41B8#8A41B8

#8A41B8 is a mid, vivid violet. Relative luminance 0.126; OKLCH L 52.4% C 0.185 H 309.7°. Best body text is #FFFFFF at 5.95:1 contrast (WCAG AA passes).

Color values

HEX#8A41B8
RGBrgb(138, 65, 184)
HSLhsl(277, 48%, 49%)
HSVhsv(277, 65%, 72%)
CMYKcmyk(25%, 64.7%, 0%, 27.8%)
CIE-LABlab(42.22, 51.41, -50.41)
CIE-LCHlch(42.22, 72.00, 315.56°)
OKLaboklab(52.43% 0.1181 -0.1423)
OKLCHoklch(52.43% 0.185 309.7)
XYZxyz(21.0216, 12.6450, 46.6714)
Luminance0.1265 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A41B8 #6FB841
analogous
#4F41B8 #8A41B8 #B841AB
triadic
#8A41B8 #B88A41 #41B88A
tetradic
#8A41B8 #B84F41 #6FB841 #41ABB8
square
#8A41B8 #B84F41 #6FB841 #41ABB8
split-complementary
#8A41B8 #ABB841 #41B84F
monochromatic
#46215E #68318B #8A41B8 #A66BCB #C199DB

Accessibility & contrast

On white

5.95
#8A41B8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#8A41B8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A41B8
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A41B8#FFFFFF#000000##FFFFFF
##8A41B81.005.953.535.95
#FFFFFF5.951.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060BC
Deuteranopia (green-blind)
#3065B5
Tritanopia (blue-blind)
#845977
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #8a41b8;
/* rgb */ color: rgb(138, 65, 184);
/* oklch */ color: oklch(52.4% 0.185 309.7);
Tailwind
colors: {
  custom: {
    50: '#b07ace',
    500: '#8a41b8',
    950: '#000000',
  },
}
SCSS
$custom: #8a41b8;
$custom-light: #b07ace;
$custom-dark: #000000;
JSON
{
  "hex": "#8a41b8",
  "rgb": {
    "r": 138,
    "g": 65,
    "b": 184
  },
  "hsl": {
    "h": 276.807,
    "s": 47.791,
    "l": 48.824
  },
  "oklch": {
    "l": 0.52425,
    "c": 0.18494,
    "h": 309.7
  },
  "luminance": 0.12645
}

Semantic roles & 50–950 ramp

primary
#8A41B8
secondary
#A4C78E
accent
#D75085
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110A14
muted
#807C82

Preview Lab

Preview with #8A41B8

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

Preview Lab → · Contrast checker → · Palette generator →

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