#8A3BC6#8A3BC6

#8A3BC6 is a mid, highly saturated violet. Relative luminance 0.126; OKLCH L 52.7% C 0.207 H 306.5°. Best body text is #FFFFFF at 5.96:1 contrast (WCAG AA passes).

Color values

HEX#8A3BC6
RGBrgb(138, 59, 198)
HSLhsl(274, 55%, 50%)
HSVhsv(274, 70%, 78%)
CMYKcmyk(30.3%, 70.2%, 0%, 22.4%)
CIE-LABlab(42.17, 57.37, -58.68)
CIE-LCHlch(42.17, 82.06, 314.35°)
OKLaboklab(52.69% 0.1233 -0.1666)
OKLCHoklch(52.69% 0.207 306.5)
XYZxyz(22.2360, 12.6087, 54.6774)
Luminance0.1261 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3BC6 #77C63B
analogous
#443BC6 #8A3BC6 #C63BBC
triadic
#8A3BC6 #C68A3B #3BC68A
tetradic
#8A3BC6 #C6443B #77C63B #3BBCC6
square
#8A3BC6 #C6443B #77C63B #3BBCC6
split-complementary
#8A3BC6 #BCC63B #3BC644
monochromatic
#481E68 #692C98 #8A3BC6 #A66AD4 #C39AE2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A3BC6#FFFFFF#000000##FFFFFF
##8A3BC61.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)
#0061CA
Deuteranopia (green-blind)
#0764C3
Tritanopia (blue-blind)
#805B7C
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #8a3bc6;
/* rgb */ color: rgb(138, 59, 198);
/* oklch */ color: oklch(52.7% 0.207 306.5);
Tailwind
colors: {
  custom: {
    50: '#b177d8',
    500: '#8a3bc6',
    950: '#000000',
  },
}
SCSS
$custom: #8a3bc6;
$custom-light: #b177d8;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3bc6",
  "rgb": {
    "r": 138,
    "g": 59,
    "b": 198
  },
  "hsl": {
    "h": 274.101,
    "s": 54.941,
    "l": 50.392
  },
  "oklch": {
    "l": 0.52686,
    "c": 0.20723,
    "h": 306.5
  },
  "luminance": 0.12608
}

Semantic roles & 50–950 ramp

primary
#8A3BC6
secondary
#AACD8F
accent
#DE4A8A
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#110915
muted
#807B83

Preview Lab

Preview with #8A3BC6

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

Preview Lab → · Contrast checker → · Palette generator →

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