#8A3CB8#8A3CB8

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

Color values

HEX#8A3CB8
RGBrgb(138, 60, 184)
HSLhsl(278, 51%, 48%)
HSVhsv(278, 67%, 72%)
CMYKcmyk(25%, 67.4%, 0%, 27.8%)
CIE-LABlab(41.37, 53.78, -51.79)
CIE-LCHlch(41.37, 74.66, 316.08°)
OKLaboklab(51.81% 0.1239 -0.1463)
OKLCHoklch(51.81% 0.192 310.2)
XYZxyz(20.7472, 12.0961, 46.5800)
Luminance0.1210 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3CB8 #6AB83C
analogous
#4C3CB8 #8A3CB8 #B83CA8
triadic
#8A3CB8 #B88A3C #3CB88A
tetradic
#8A3CB8 #B84C3C #6AB83C #3CA8B8
square
#8A3CB8 #B84C3C #6AB83C #3CA8B8
split-complementary
#8A3CB8 #A8B83C #3CB84C
monochromatic
#451E5C #672D8A #8A3CB8 #A665CD #C193DC

Accessibility & contrast

On white

6.14
#8A3CB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #8A3CB8
6.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3CB8#FFFFFF#000000##FFFFFF
##8A3CB81.006.143.426.14
#FFFFFF6.141.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EBC
Deuteranopia (green-blind)
#2A63B5
Tritanopia (blue-blind)
#845675
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #8a3cb8;
/* rgb */ color: rgb(138, 60, 184);
/* oklch */ color: oklch(51.8% 0.192 310.2);
Tailwind
colors: {
  custom: {
    50: '#b077ce',
    500: '#8a3cb8',
    950: '#000000',
  },
}
SCSS
$custom: #8a3cb8;
$custom-light: #b077ce;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3cb8",
  "rgb": {
    "r": 138,
    "g": 60,
    "b": 184
  },
  "hsl": {
    "h": 277.742,
    "s": 50.82,
    "l": 47.843
  },
  "oklch": {
    "l": 0.5181,
    "c": 0.19171,
    "h": 310.2
  },
  "luminance": 0.12096
}

Semantic roles & 50–950 ramp

primary
#8A3CB8
secondary
#A0C789
accent
#DA4D82
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110914
muted
#807B82

Preview Lab

Preview with #8A3CB8

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

Preview Lab → · Contrast checker → · Palette generator →

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