#8A3CB9#8A3CB9

#8A3CB9 is a mid, vivid violet. Relative luminance 0.121; OKLCH L 51.9% C 0.193 H 310.0°. Best body text is #FFFFFF at 6.13:1 contrast (WCAG AA passes).

Color values

HEX#8A3CB9
RGBrgb(138, 60, 185)
HSLhsl(277, 51%, 48%)
HSVhsv(277, 68%, 73%)
CMYKcmyk(25.4%, 67.6%, 0%, 27.5%)
CIE-LABlab(41.43, 54.00, -52.27)
CIE-LCHlch(41.43, 75.15, 315.93°)
OKLaboklab(51.88% 0.1238 -0.1477)
OKLCHoklch(51.88% 0.193 310)
XYZxyz(20.8523, 12.1382, 47.1340)
Luminance0.1214 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3CB9 #6BB93C
analogous
#4C3CB9 #8A3CB9 #B93CA9
triadic
#8A3CB9 #B98A3C #3CB98A
tetradic
#8A3CB9 #B94C3C #6BB93C #3CA9B9
square
#8A3CB9 #B94C3C #6BB93C #3CA9B9
split-complementary
#8A3CB9 #A9B93C #3CB94C
monochromatic
#451E5D #682D8B #8A3CB9 #A665CD #C193DC

Accessibility & contrast

On white

6.13
#8A3CB9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#8A3CB9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3CB9
6.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3CB9#FFFFFF#000000##FFFFFF
##8A3CB91.006.133.436.13
#FFFFFF6.131.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EBD
Deuteranopia (green-blind)
#2863B6
Tritanopia (blue-blind)
#845676
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #8a3cb9;
/* rgb */ color: rgb(138, 60, 185);
/* oklch */ color: oklch(51.9% 0.193 310.0);
Tailwind
colors: {
  custom: {
    50: '#b077cf',
    500: '#8a3cb9',
    950: '#000000',
  },
}
SCSS
$custom: #8a3cb9;
$custom-light: #b077cf;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3cb9",
  "rgb": {
    "r": 138,
    "g": 60,
    "b": 185
  },
  "hsl": {
    "h": 277.44,
    "s": 51.02,
    "l": 48.039
  },
  "oklch": {
    "l": 0.51879,
    "c": 0.19273,
    "h": 310
  },
  "luminance": 0.12138
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8A3CB9

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

Preview Lab → · Contrast checker → · Palette generator →

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