#8A3BBA#8A3BBA

#8A3BBA is a mid, vivid violet. Relative luminance 0.121; OKLCH L 51.8% C 0.195 H 309.8°. Best body text is #FFFFFF at 6.15:1 contrast (WCAG AA passes).

Color values

HEX#8A3BBA
RGBrgb(138, 59, 186)
HSLhsl(277, 52%, 48%)
HSVhsv(277, 68%, 73%)
CMYKcmyk(25.8%, 68.3%, 0%, 27.1%)
CIE-LABlab(41.34, 54.68, -53.01)
CIE-LCHlch(41.34, 76.16, 315.89°)
OKLaboklab(51.83% 0.1248 -0.1499)
OKLCHoklch(51.83% 0.195 309.8)
XYZxyz(20.9064, 12.0768, 47.6746)
Luminance0.1208 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3BBA #6BBA3B
analogous
#4A3BBA #8A3BBA #BA3BAA
triadic
#8A3BBA #BA8A3B #3BBA8A
tetradic
#8A3BBA #BA4A3B #6BBA3B #3BAABA
square
#8A3BBA #BA4A3B #6BBA3B #3BAABA
split-complementary
#8A3BBA #AABA3B #3BBA4A
monochromatic
#451E5D #682C8C #8A3BBA #A664CE #C193DD

Accessibility & contrast

On white

6.15
#8A3BBA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.42
#8A3BBA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3BBA
6.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3BBA#FFFFFF#000000##FFFFFF
##8A3BBA1.006.153.426.15
#FFFFFF6.151.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EBE
Deuteranopia (green-blind)
#2663B7
Tritanopia (blue-blind)
#835676
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #8a3bba;
/* rgb */ color: rgb(138, 59, 186);
/* oklch */ color: oklch(51.8% 0.195 309.8);
Tailwind
colors: {
  custom: {
    50: '#b077cf',
    500: '#8a3bba',
    950: '#000000',
  },
}
SCSS
$custom: #8a3bba;
$custom-light: #b077cf;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3bba",
  "rgb": {
    "r": 138,
    "g": 59,
    "b": 186
  },
  "hsl": {
    "h": 277.323,
    "s": 51.837,
    "l": 48.039
  },
  "oklch": {
    "l": 0.51831,
    "c": 0.19504,
    "h": 309.8
  },
  "luminance": 0.12076
}

Semantic roles & 50–950 ramp

primary
#8A3BBA
secondary
#A1C889
accent
#DB4D82
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110914
muted
#807B82

Preview Lab

Preview with #8A3BBA

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

Preview Lab → · Contrast checker → · Palette generator →

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