#8A3CB6#8A3CB6

#8A3CB6 is a mid, vivid violet. Relative luminance 0.120; OKLCH L 51.7% C 0.190 H 310.8°. Best body text is #FFFFFF at 6.17:1 contrast (WCAG AA passes).

Color values

HEX#8A3CB6
RGBrgb(138, 60, 182)
HSLhsl(278, 50%, 47%)
HSVhsv(278, 67%, 71%)
CMYKcmyk(24.2%, 67%, 0%, 28.6%)
CIE-LABlab(41.24, 53.33, -50.82)
CIE-LCHlch(41.24, 73.67, 316.38°)
OKLaboklab(51.67% 0.124 -0.1435)
OKLCHoklch(51.67% 0.19 310.8)
XYZxyz(20.5390, 12.0129, 45.4836)
Luminance0.1201 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3CB6 #68B63C
analogous
#4D3CB6 #8A3CB6 #B63CA5
triadic
#8A3CB6 #B68A3C #3CB68A
tetradic
#8A3CB6 #B64D3C #68B63C #3CA5B6
square
#8A3CB6 #B64D3C #68B63C #3CA5B6
split-complementary
#8A3CB6 #A5B63C #3CB64D
monochromatic
#441E5A #672D88 #8A3CB6 #A663CC #C091DB

Accessibility & contrast

On white

6.17
#8A3CB6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#8A3CB6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3CB6
6.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3CB6#FFFFFF#000000##FFFFFF
##8A3CB61.006.173.406.17
#FFFFFF6.171.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EBA
Deuteranopia (green-blind)
#2C63B3
Tritanopia (blue-blind)
#845574
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #8a3cb6;
/* rgb */ color: rgb(138, 60, 182);
/* oklch */ color: oklch(51.7% 0.190 310.8);
Tailwind
colors: {
  custom: {
    50: '#b077cd',
    500: '#8a3cb6',
    950: '#000000',
  },
}
SCSS
$custom: #8a3cb6;
$custom-light: #b077cd;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3cb6",
  "rgb": {
    "r": 138,
    "g": 60,
    "b": 182
  },
  "hsl": {
    "h": 278.361,
    "s": 50.413,
    "l": 47.451
  },
  "oklch": {
    "l": 0.51674,
    "c": 0.18966,
    "h": 310.8
  },
  "luminance": 0.12012
}

Semantic roles & 50–950 ramp

primary
#8A3CB6
secondary
#9EC688
accent
#DA4E80
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110913
muted
#807B82

Preview Lab

Preview with #8A3CB6

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

Preview Lab → · Contrast checker → · Palette generator →

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