#8A41B2#8A41B2

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

Color values

HEX#8A41B2
RGBrgb(138, 65, 178)
HSLhsl(279, 47%, 48%)
HSVhsv(279, 63%, 70%)
CMYKcmyk(22.5%, 63.5%, 0%, 30.2%)
CIE-LABlab(41.84, 50.07, -47.49)
CIE-LCHlch(41.84, 69.01, 316.51°)
OKLaboklab(52.03% 0.1184 -0.1337)
OKLCHoklch(52.03% 0.179 311.5)
XYZxyz(20.4059, 12.3987, 43.4291)
Luminance0.1240 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A41B2 #69B241
analogous
#5141B2 #8A41B2 #B241A1
triadic
#8A41B2 #B28A41 #41B28A
tetradic
#8A41B2 #B25141 #69B241 #41A1B2
square
#8A41B2 #B25141 #69B241 #41A1B2
split-complementary
#8A41B2 #A1B241 #41B251
monochromatic
#442058 #673185 #8A41B2 #A668C8 #C195D8

Accessibility & contrast

On white

6.04
#8A41B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#8A41B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A41B2
6.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A41B2#FFFFFF#000000##FFFFFF
##8A41B21.006.043.486.04
#FFFFFF6.041.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A5FB5
Deuteranopia (green-blind)
#3664AF
Tritanopia (blue-blind)
#855774
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #8a41b2;
/* rgb */ color: rgb(138, 65, 178);
/* oklch */ color: oklch(52.0% 0.179 311.5);
Tailwind
colors: {
  custom: {
    50: '#af7aca',
    500: '#8a41b2',
    950: '#000000',
  },
}
SCSS
$custom: #8a41b2;
$custom-light: #af7aca;
$custom-dark: #000000;
JSON
{
  "hex": "#8a41b2",
  "rgb": {
    "r": 138,
    "g": 65,
    "b": 178
  },
  "hsl": {
    "h": 278.761,
    "s": 46.502,
    "l": 47.647
  },
  "oklch": {
    "l": 0.52029,
    "c": 0.17861,
    "h": 311.5
  },
  "luminance": 0.12398
}

Semantic roles & 50–950 ramp

primary
#8A41B2
secondary
#9FC48B
accent
#D65281
background
#FBF7FC
surface
#F6EEF8
border
#D0C9D1
text
#110913
muted
#807B82

Preview Lab

Preview with #8A41B2

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

Preview Lab → · Contrast checker → · Palette generator →

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