#8A3CBC#8A3CBC

#8A3CBC is a mid, vivid violet. Relative luminance 0.123; OKLCH L 52.1% C 0.196 H 309.1°. Best body text is #FFFFFF at 6.08:1 contrast (WCAG AA passes).

Color values

HEX#8A3CBC
RGBrgb(138, 60, 188)
HSLhsl(277, 52%, 49%)
HSVhsv(277, 68%, 74%)
CMYKcmyk(26.6%, 68.1%, 0%, 26.3%)
CIE-LABlab(41.64, 54.66, -53.70)
CIE-LCHlch(41.64, 76.63, 315.51°)
OKLaboklab(52.09% 0.1235 -0.1519)
OKLCHoklch(52.09% 0.196 309.1)
XYZxyz(21.1724, 12.2662, 48.8195)
Luminance0.1227 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3CBC #6EBC3C
analogous
#4A3CBC #8A3CBC #BC3CAE
triadic
#8A3CBC #BC8A3C #3CBC8A
tetradic
#8A3CBC #BC4A3C #6EBC3C #3CAEBC
square
#8A3CBC #BC4A3C #6EBC3C #3CAEBC
split-complementary
#8A3CBC #AEBC3C #3CBC4A
monochromatic
#461E5F #682D8E #8A3CBC #A667CE #C195DD

Accessibility & contrast

On white

6.08
#8A3CBC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#8A3CBC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3CBC
6.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3CBC#FFFFFF#000000##FFFFFF
##8A3CBC1.006.083.456.08
#FFFFFF6.081.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FC0
Deuteranopia (green-blind)
#2463B9
Tritanopia (blue-blind)
#835777
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #8a3cbc;
/* rgb */ color: rgb(138, 60, 188);
/* oklch */ color: oklch(52.1% 0.196 309.1);
Tailwind
colors: {
  custom: {
    50: '#b078d1',
    500: '#8a3cbc',
    950: '#000000',
  },
}
SCSS
$custom: #8a3cbc;
$custom-light: #b078d1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3cbc",
  "rgb": {
    "r": 138,
    "g": 60,
    "b": 188
  },
  "hsl": {
    "h": 276.563,
    "s": 51.613,
    "l": 48.627
  },
  "oklch": {
    "l": 0.52087,
    "c": 0.19579,
    "h": 309.1
  },
  "luminance": 0.12266
}

Semantic roles & 50–950 ramp

primary
#8A3CBC
secondary
#A3C98B
accent
#DB4D84
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110914
muted
#807B82

Preview Lab

Preview with #8A3CBC

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

Preview Lab → · Contrast checker → · Palette generator →

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