#8A3CBE#8A3CBE

#8A3CBE is a mid, vivid violet. Relative luminance 0.124; OKLCH L 52.2% C 0.198 H 308.5°. Best body text is #FFFFFF at 6.05:1 contrast (WCAG AA passes).

Color values

HEX#8A3CBE
RGBrgb(138, 60, 190)
HSLhsl(276, 52%, 49%)
HSVhsv(276, 68%, 75%)
CMYKcmyk(27.4%, 68.4%, 0%, 25.5%)
CIE-LABlab(41.77, 55.11, -54.66)
CIE-LCHlch(41.77, 77.62, 315.24°)
OKLaboklab(52.23% 0.1233 -0.1547)
OKLCHoklch(52.23% 0.198 308.5)
XYZxyz(21.3895, 12.3530, 49.9628)
Luminance0.1235 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3CBE #70BE3C
analogous
#493CBE #8A3CBE #BE3CB1
triadic
#8A3CBE #BE8A3C #3CBE8A
tetradic
#8A3CBE #BE493C #70BE3C #3CB1BE
square
#8A3CBE #BE493C #70BE3C #3CB1BE
split-complementary
#8A3CBE #B1BE3C #3CBE49
monochromatic
#461F61 #682D8F #8A3CBE #A668CF #C196DE

Accessibility & contrast

On white

6.05
#8A3CBE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#8A3CBE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3CBE
6.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3CBE#FFFFFF#000000##FFFFFF
##8A3CBE1.006.053.476.05
#FFFFFF6.051.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060C2
Deuteranopia (green-blind)
#2163BB
Tritanopia (blue-blind)
#825878
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #8a3cbe;
/* rgb */ color: rgb(138, 60, 190);
/* oklch */ color: oklch(52.2% 0.198 308.5);
Tailwind
colors: {
  custom: {
    50: '#b078d2',
    500: '#8a3cbe',
    950: '#000000',
  },
}
SCSS
$custom: #8a3cbe;
$custom-light: #b078d2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3cbe",
  "rgb": {
    "r": 138,
    "g": 60,
    "b": 190
  },
  "hsl": {
    "h": 276,
    "s": 52,
    "l": 49.02
  },
  "oklch": {
    "l": 0.52228,
    "c": 0.19784,
    "h": 308.5
  },
  "luminance": 0.12353
}

Semantic roles & 50–950 ramp

primary
#8A3CBE
secondary
#A5CA8C
accent
#DB4C86
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#110914
muted
#807B83

Preview Lab

Preview with #8A3CBE

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

Preview Lab → · Contrast checker → · Palette generator →

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