#8A3CB1#8A3CB1

#8A3CB1 is a mid, vivid purple. Relative luminance 0.118; OKLCH L 51.3% C 0.185 H 312.4°. Best body text is #FFFFFF at 6.25:1 contrast (WCAG AA passes).

Color values

HEX#8A3CB1
RGBrgb(138, 60, 177)
HSLhsl(280, 49%, 46%)
HSVhsv(280, 66%, 69%)
CMYKcmyk(22%, 66.1%, 0%, 30.6%)
CIE-LABlab(40.91, 52.24, -48.39)
CIE-LCHlch(40.91, 71.21, 317.19°)
OKLaboklab(51.34% 0.1244 -0.1364)
OKLCHoklch(51.34% 0.185 312.4)
XYZxyz(20.0315, 11.8099, 42.8108)
Luminance0.1181 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3CB1 #63B13C
analogous
#503CB1 #8A3CB1 #B13C9E
triadic
#8A3CB1 #B18A3C #3CB18A
tetradic
#8A3CB1 #B1503C #63B13C #3C9EB1
square
#8A3CB1 #B1503C #63B13C #3C9EB1
split-complementary
#8A3CB1 #9EB13C #3CB150
monochromatic
#431D56 #662D83 #8A3CB1 #A761C9 #C08FD9

Accessibility & contrast

On white

6.25
#8A3CB1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#8A3CB1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3CB1
6.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3CB1#FFFFFF#000000##FFFFFF
##8A3CB11.006.253.366.25
#FFFFFF6.251.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DB5
Deuteranopia (green-blind)
#3262AE
Tritanopia (blue-blind)
#865371
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #8a3cb1;
/* rgb */ color: rgb(138, 60, 177);
/* oklch */ color: oklch(51.3% 0.185 312.4);
Tailwind
colors: {
  custom: {
    50: '#b077c9',
    500: '#8a3cb1',
    950: '#000000',
  },
}
SCSS
$custom: #8a3cb1;
$custom-light: #b077c9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3cb1",
  "rgb": {
    "r": 138,
    "g": 60,
    "b": 177
  },
  "hsl": {
    "h": 280,
    "s": 49.367,
    "l": 46.471
  },
  "oklch": {
    "l": 0.51337,
    "c": 0.18456,
    "h": 312.4
  },
  "luminance": 0.11809
}

Semantic roles & 50–950 ramp

primary
#8A3CB1
secondary
#9AC485
accent
#D94F7D
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110913
muted
#807B82

Preview Lab

Preview with #8A3CB1

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

Preview Lab → · Contrast checker → · Palette generator →

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