#8A3CBD#8A3CBD

#8A3CBD is a mid, vivid violet. Relative luminance 0.123; OKLCH L 52.2% C 0.197 H 308.8°. Best body text is #FFFFFF at 6.07:1 contrast (WCAG AA passes).

Color values

HEX#8A3CBD
RGBrgb(138, 60, 189)
HSLhsl(276, 52%, 49%)
HSVhsv(276, 68%, 74%)
CMYKcmyk(27%, 68.3%, 0%, 25.9%)
CIE-LABlab(41.70, 54.89, -54.18)
CIE-LCHlch(41.70, 77.12, 315.37°)
OKLaboklab(52.16% 0.1234 -0.1533)
OKLCHoklch(52.16% 0.197 308.8)
XYZxyz(21.2805, 12.3095, 49.3892)
Luminance0.1231 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3CBD #6FBD3C
analogous
#4A3CBD #8A3CBD #BD3CB0
triadic
#8A3CBD #BD8A3C #3CBD8A
tetradic
#8A3CBD #BD4A3C #6FBD3C #3CB0BD
square
#8A3CBD #BD4A3C #6FBD3C #3CB0BD
split-complementary
#8A3CBD #B0BD3C #3CBD4A
monochromatic
#461F60 #682D8F #8A3CBD #A667CF #C196DE

Accessibility & contrast

On white

6.07
#8A3CBD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#8A3CBD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3CBD
6.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3CBD#FFFFFF#000000##FFFFFF
##8A3CBD1.006.073.466.07
#FFFFFF6.071.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FC1
Deuteranopia (green-blind)
#2263BA
Tritanopia (blue-blind)
#825878
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #8a3cbd;
/* rgb */ color: rgb(138, 60, 189);
/* oklch */ color: oklch(52.2% 0.197 308.8);
Tailwind
colors: {
  custom: {
    50: '#b078d2',
    500: '#8a3cbd',
    950: '#000000',
  },
}
SCSS
$custom: #8a3cbd;
$custom-light: #b078d2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3cbd",
  "rgb": {
    "r": 138,
    "g": 60,
    "b": 189
  },
  "hsl": {
    "h": 276.279,
    "s": 51.807,
    "l": 48.824
  },
  "oklch": {
    "l": 0.52157,
    "c": 0.19681,
    "h": 308.8
  },
  "luminance": 0.12309
}

Semantic roles & 50–950 ramp

primary
#8A3CBD
secondary
#A4C98C
accent
#DB4D85
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#110914
muted
#807B83

Preview Lab

Preview with #8A3CBD

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

Preview Lab → · Contrast checker → · Palette generator →

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