#8A3EB6#8A3EB6

#8A3EB6 is a mid, vivid violet. Relative luminance 0.122; OKLCH L 51.9% C 0.187 H 310.6°. Best body text is #FFFFFF at 6.10:1 contrast (WCAG AA passes).

Color values

HEX#8A3EB6
RGBrgb(138, 62, 182)
HSLhsl(278, 49%, 48%)
HSVhsv(278, 66%, 71%)
CMYKcmyk(24.2%, 65.9%, 0%, 28.6%)
CIE-LABlab(41.57, 52.40, -50.28)
CIE-LCHlch(41.57, 72.62, 316.18°)
OKLaboklab(51.92% 0.1217 -0.1419)
OKLCHoklch(51.92% 0.187 310.6)
XYZxyz(20.6457, 12.2264, 45.5192)
Luminance0.1223 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3EB6 #6AB63E
analogous
#4E3EB6 #8A3EB6 #B63EA6
triadic
#8A3EB6 #B68A3E #3EB68A
tetradic
#8A3EB6 #B64E3E #6AB63E #3EA6B6
square
#8A3EB6 #B64E3E #6AB63E #3EA6B6
split-complementary
#8A3EB6 #A6B63E #3EB64E
monochromatic
#451F5B #672E88 #8A3EB6 #A666CB #C194DB

Accessibility & contrast

On white

6.10
#8A3EB6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#8A3EB6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3EB6
6.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3EB6#FFFFFF#000000##FFFFFF
##8A3EB61.006.103.456.10
#FFFFFF6.101.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FBA
Deuteranopia (green-blind)
#2F63B3
Tritanopia (blue-blind)
#845675
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #8a3eb6;
/* rgb */ color: rgb(138, 62, 182);
/* oklch */ color: oklch(51.9% 0.187 310.6);
Tailwind
colors: {
  custom: {
    50: '#b078cc',
    500: '#8a3eb6',
    950: '#000000',
  },
}
SCSS
$custom: #8a3eb6;
$custom-light: #b078cc;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3eb6",
  "rgb": {
    "r": 138,
    "g": 62,
    "b": 182
  },
  "hsl": {
    "h": 278,
    "s": 49.18,
    "l": 47.843
  },
  "oklch": {
    "l": 0.51916,
    "c": 0.18697,
    "h": 310.6
  },
  "luminance": 0.12226
}

Semantic roles & 50–950 ramp

primary
#8A3EB6
secondary
#A0C68A
accent
#D94F82
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110913
muted
#807B82

Preview Lab

Preview with #8A3EB6

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

Preview Lab → · Contrast checker → · Palette generator →

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