#8A3CB5#8A3CB5

#8A3CB5 is a mid, vivid violet. Relative luminance 0.120; OKLCH L 51.6% C 0.189 H 311.1°. Best body text is #FFFFFF at 6.19:1 contrast (WCAG AA passes).

Color values

HEX#8A3CB5
RGBrgb(138, 60, 181)
HSLhsl(279, 50%, 47%)
HSVhsv(279, 67%, 71%)
CMYKcmyk(23.8%, 66.9%, 0%, 29%)
CIE-LABlab(41.17, 53.11, -50.34)
CIE-LCHlch(41.17, 73.18, 316.54°)
OKLaboklab(51.61% 0.1241 -0.1421)
OKLCHoklch(51.61% 0.189 311.1)
XYZxyz(20.4360, 11.9717, 44.9413)
Luminance0.1197 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3CB5 #67B53C
analogous
#4E3CB5 #8A3CB5 #B53CA3
triadic
#8A3CB5 #B58A3C #3CB58A
tetradic
#8A3CB5 #B54E3C #67B53C #3CA3B5
square
#8A3CB5 #B54E3C #67B53C #3CA3B5
split-complementary
#8A3CB5 #A3B53C #3CB54E
monochromatic
#441E59 #672D87 #8A3CB5 #A663CB #C091DB

Accessibility & contrast

On white

6.19
#8A3CB5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #8A3CB5
6.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3CB5#FFFFFF#000000##FFFFFF
##8A3CB51.006.193.396.19
#FFFFFF6.191.0021.001.00
#0000003.3921.001.0021.00
##FFFFFF6.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DB9
Deuteranopia (green-blind)
#2E63B2
Tritanopia (blue-blind)
#855573
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #8a3cb5;
/* rgb */ color: rgb(138, 60, 181);
/* oklch */ color: oklch(51.6% 0.189 311.1);
Tailwind
colors: {
  custom: {
    50: '#b077cc',
    500: '#8a3cb5',
    950: '#000000',
  },
}
SCSS
$custom: #8a3cb5;
$custom-light: #b077cc;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3cb5",
  "rgb": {
    "r": 138,
    "g": 60,
    "b": 181
  },
  "hsl": {
    "h": 278.678,
    "s": 50.207,
    "l": 47.255
  },
  "oklch": {
    "l": 0.51606,
    "c": 0.18864,
    "h": 311.1
  },
  "luminance": 0.11971
}

Semantic roles & 50–950 ramp

primary
#8A3CB5
secondary
#9DC687
accent
#DA4E80
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110913
muted
#807B82

Preview Lab

Preview with #8A3CB5

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

Preview Lab → · Contrast checker → · Palette generator →

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