#8A3CB4#8A3CB4

#8A3CB4 is a mid, vivid violet. Relative luminance 0.119; OKLCH L 51.5% C 0.188 H 311.4°. Best body text is #FFFFFF at 6.20:1 contrast (WCAG AA passes).

Color values

HEX#8A3CB4
RGBrgb(138, 60, 180)
HSLhsl(279, 50%, 47%)
HSVhsv(279, 67%, 71%)
CMYKcmyk(23.3%, 66.7%, 0%, 29.4%)
CIE-LABlab(41.11, 52.89, -49.85)
CIE-LCHlch(41.11, 72.69, 316.69°)
OKLaboklab(51.54% 0.1242 -0.1406)
OKLCHoklch(51.54% 0.188 311.4)
XYZxyz(20.3338, 11.9308, 44.4029)
Luminance0.1193 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3CB4 #66B43C
analogous
#4E3CB4 #8A3CB4 #B43CA2
triadic
#8A3CB4 #B48A3C #3CB48A
tetradic
#8A3CB4 #B44E3C #66B43C #3CA2B4
square
#8A3CB4 #B44E3C #66B43C #3CA2B4
split-complementary
#8A3CB4 #A2B43C #3CB44E
monochromatic
#441D58 #672D86 #8A3CB4 #A662CB #C090DA

Accessibility & contrast

On white

6.20
#8A3CB4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.39
#8A3CB4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3CB4
6.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3CB4#FFFFFF#000000##FFFFFF
##8A3CB41.006.203.396.20
#FFFFFF6.201.0021.001.00
#0000003.3921.001.0021.00
##FFFFFF6.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DB8
Deuteranopia (green-blind)
#2F62B1
Tritanopia (blue-blind)
#855473
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #8a3cb4;
/* rgb */ color: rgb(138, 60, 180);
/* oklch */ color: oklch(51.5% 0.188 311.4);
Tailwind
colors: {
  custom: {
    50: '#b077cb',
    500: '#8a3cb4',
    950: '#000000',
  },
}
SCSS
$custom: #8a3cb4;
$custom-light: #b077cb;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3cb4",
  "rgb": {
    "r": 138,
    "g": 60,
    "b": 180
  },
  "hsl": {
    "h": 279,
    "s": 50,
    "l": 47.059
  },
  "oklch": {
    "l": 0.51538,
    "c": 0.18762,
    "h": 311.4
  },
  "luminance": 0.1193
}

Semantic roles & 50–950 ramp

primary
#8A3CB4
secondary
#9DC587
accent
#DA4E7F
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110913
muted
#807B82

Preview Lab

Preview with #8A3CB4

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

Preview Lab → · Contrast checker → · Palette generator →

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