#8A41B5#8A41B5

#8A41B5 is a mid, vivid violet. Relative luminance 0.125; OKLCH L 52.2% C 0.182 H 310.6°. Best body text is #FFFFFF at 5.99:1 contrast (WCAG AA passes).

Color values

HEX#8A41B5
RGBrgb(138, 65, 181)
HSLhsl(278, 47%, 48%)
HSVhsv(278, 64%, 71%)
CMYKcmyk(23.8%, 64.1%, 0%, 29%)
CIE-LABlab(42.03, 50.74, -48.96)
CIE-LCHlch(42.03, 70.51, 316.02°)
OKLaboklab(52.23% 0.1183 -0.138)
OKLCHoklch(52.23% 0.182 310.6)
XYZxyz(20.7104, 12.5205, 45.0328)
Luminance0.1252 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A41B5 #6CB541
analogous
#5041B5 #8A41B5 #B541A6
triadic
#8A41B5 #B58A41 #41B58A
tetradic
#8A41B5 #B55041 #6CB541 #41A6B5
square
#8A41B5 #B55041 #6CB541 #41A6B5
split-complementary
#8A41B5 #A6B541 #41B550
monochromatic
#45215B #683188 #8A41B5 #A66AC9 #C197DA

Accessibility & contrast

On white

5.99
#8A41B5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.50
#8A41B5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A41B5
5.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A41B5#FFFFFF#000000##FFFFFF
##8A41B51.005.993.505.99
#FFFFFF5.991.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF5.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060B9
Deuteranopia (green-blind)
#3364B2
Tritanopia (blue-blind)
#845875
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #8a41b5;
/* rgb */ color: rgb(138, 65, 181);
/* oklch */ color: oklch(52.2% 0.182 310.6);
Tailwind
colors: {
  custom: {
    50: '#b07acc',
    500: '#8a41b5',
    950: '#000000',
  },
}
SCSS
$custom: #8a41b5;
$custom-light: #b07acc;
$custom-dark: #000000;
JSON
{
  "hex": "#8a41b5",
  "rgb": {
    "r": 138,
    "g": 65,
    "b": 181
  },
  "hsl": {
    "h": 277.759,
    "s": 47.154,
    "l": 48.235
  },
  "oklch": {
    "l": 0.52226,
    "c": 0.18178,
    "h": 310.6
  },
  "luminance": 0.1252
}

Semantic roles & 50–950 ramp

primary
#8A41B5
secondary
#A2C58C
accent
#D75183
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110913
muted
#807B82

Preview Lab

Preview with #8A41B5

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

Preview Lab → · Contrast checker → · Palette generator →

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