#8A3CB2#8A3CB2

#8A3CB2 is a mid, vivid violet. Relative luminance 0.118; OKLCH L 51.4% C 0.186 H 312.1°. Best body text is #FFFFFF at 6.23:1 contrast (WCAG AA passes).

Color values

HEX#8A3CB2
RGBrgb(138, 60, 178)
HSLhsl(280, 50%, 47%)
HSVhsv(280, 66%, 70%)
CMYKcmyk(22.5%, 66.3%, 0%, 30.2%)
CIE-LABlab(40.98, 52.46, -48.88)
CIE-LCHlch(40.98, 71.70, 317.02°)
OKLaboklab(51.4% 0.1243 -0.1378)
OKLCHoklch(51.4% 0.186 312.1)
XYZxyz(20.1315, 11.8499, 43.3376)
Luminance0.1185 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3CB2 #64B23C
analogous
#4F3CB2 #8A3CB2 #B23C9F
triadic
#8A3CB2 #B28A3C #3CB28A
tetradic
#8A3CB2 #B24F3C #64B23C #3C9FB2
square
#8A3CB2 #B24F3C #64B23C #3C9FB2
split-complementary
#8A3CB2 #9FB23C #3CB24F
monochromatic
#431D56 #672D84 #8A3CB2 #A661CA #C08FD9

Accessibility & contrast

On white

6.23
#8A3CB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#8A3CB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3CB2
6.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3CB2#FFFFFF#000000##FFFFFF
##8A3CB21.006.233.376.23
#FFFFFF6.231.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DB6
Deuteranopia (green-blind)
#3162AF
Tritanopia (blue-blind)
#855472
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #8a3cb2;
/* rgb */ color: rgb(138, 60, 178);
/* oklch */ color: oklch(51.4% 0.186 312.1);
Tailwind
colors: {
  custom: {
    50: '#b077ca',
    500: '#8a3cb2',
    950: '#000000',
  },
}
SCSS
$custom: #8a3cb2;
$custom-light: #b077ca;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3cb2",
  "rgb": {
    "r": 138,
    "g": 60,
    "b": 178
  },
  "hsl": {
    "h": 279.661,
    "s": 49.58,
    "l": 46.667
  },
  "oklch": {
    "l": 0.51404,
    "c": 0.18558,
    "h": 312.1
  },
  "luminance": 0.11849
}

Semantic roles & 50–950 ramp

primary
#8A3CB2
secondary
#9BC486
accent
#D94F7E
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110913
muted
#807B82

Preview Lab

Preview with #8A3CB2

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

Preview Lab → · Contrast checker → · Palette generator →

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