#8A41B7#8A41B7

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

Color values

HEX#8A41B7
RGBrgb(138, 65, 183)
HSLhsl(277, 48%, 49%)
HSVhsv(277, 64%, 72%)
CMYKcmyk(24.6%, 64.5%, 0%, 28.2%)
CIE-LABlab(42.16, 51.19, -49.93)
CIE-LCHlch(42.16, 71.50, 315.71°)
OKLaboklab(52.36% 0.1182 -0.1409)
OKLCHoklch(52.36% 0.184 310)
XYZxyz(20.9171, 12.6032, 46.1213)
Luminance0.1260 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A41B7 #6EB741
analogous
#4F41B7 #8A41B7 #B741A9
triadic
#8A41B7 #B78A41 #41B78A
tetradic
#8A41B7 #B74F41 #6EB741 #41A9B7
square
#8A41B7 #B74F41 #6EB741 #41A9B7
split-complementary
#8A41B7 #A9B741 #41B74F
monochromatic
#46215D #68318A #8A41B7 #A66BCA #C198DA

Accessibility & contrast

On white

5.96
#8A41B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#8A41B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A41B7
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A41B7#FFFFFF#000000##FFFFFF
##8A41B71.005.963.525.96
#FFFFFF5.961.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060BB
Deuteranopia (green-blind)
#3165B4
Tritanopia (blue-blind)
#845976
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #8a41b7;
/* rgb */ color: rgb(138, 65, 183);
/* oklch */ color: oklch(52.4% 0.184 310.0);
Tailwind
colors: {
  custom: {
    50: '#b07acd',
    500: '#8a41b7',
    950: '#000000',
  },
}
SCSS
$custom: #8a41b7;
$custom-light: #b07acd;
$custom-dark: #000000;
JSON
{
  "hex": "#8a41b7",
  "rgb": {
    "r": 138,
    "g": 65,
    "b": 183
  },
  "hsl": {
    "h": 277.119,
    "s": 47.581,
    "l": 48.627
  },
  "oklch": {
    "l": 0.52358,
    "c": 0.18389,
    "h": 310
  },
  "luminance": 0.12603
}

Semantic roles & 50–950 ramp

primary
#8A41B7
secondary
#A3C68E
accent
#D75184
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110913
muted
#807B82

Preview Lab

Preview with #8A41B7

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

Preview Lab → · Contrast checker → · Palette generator →

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