#8A3BB9#8A3BB9

#8A3BB9 is a mid, vivid violet. Relative luminance 0.120; OKLCH L 51.8% C 0.194 H 310.1°. Best body text is #FFFFFF at 6.16:1 contrast (WCAG AA passes).

Color values

HEX#8A3BB9
RGBrgb(138, 59, 185)
HSLhsl(278, 52%, 48%)
HSVhsv(278, 68%, 73%)
CMYKcmyk(25.4%, 68.1%, 0%, 27.5%)
CIE-LABlab(41.27, 54.45, -52.53)
CIE-LCHlch(41.27, 75.66, 316.03°)
OKLaboklab(51.76% 0.1249 -0.1485)
OKLCHoklch(51.76% 0.194 310.1)
XYZxyz(20.8005, 12.0344, 47.1167)
Luminance0.1203 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3BB9 #6AB93B
analogous
#4B3BB9 #8A3BB9 #B93BA9
triadic
#8A3BB9 #B98A3B #3BB98A
tetradic
#8A3BB9 #B94B3B #6AB93B #3BA9B9
square
#8A3BB9 #B94B3B #6AB93B #3BA9B9
split-complementary
#8A3BB9 #A9B93B #3BB94B
monochromatic
#451D5C #672C8B #8A3BB9 #A664CD #C192DC

Accessibility & contrast

On white

6.16
#8A3BB9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#8A3BB9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3BB9
6.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3BB9#FFFFFF#000000##FFFFFF
##8A3BB91.006.163.416.16
#FFFFFF6.161.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EBD
Deuteranopia (green-blind)
#2763B6
Tritanopia (blue-blind)
#845675
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #8a3bb9;
/* rgb */ color: rgb(138, 59, 185);
/* oklch */ color: oklch(51.8% 0.194 310.1);
Tailwind
colors: {
  custom: {
    50: '#b077cf',
    500: '#8a3bb9',
    950: '#000000',
  },
}
SCSS
$custom: #8a3bb9;
$custom-light: #b077cf;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3bb9",
  "rgb": {
    "r": 138,
    "g": 59,
    "b": 185
  },
  "hsl": {
    "h": 277.619,
    "s": 51.639,
    "l": 47.843
  },
  "oklch": {
    "l": 0.51762,
    "c": 0.19402,
    "h": 310.1
  },
  "luminance": 0.12034
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8A3BB9

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

Preview Lab → · Contrast checker → · Palette generator →

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