#8A3EB1#8A3EB1

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

Color values

HEX#8A3EB1
RGBrgb(138, 62, 177)
HSLhsl(280, 48%, 47%)
HSVhsv(280, 65%, 69%)
CMYKcmyk(22%, 65%, 0%, 30.6%)
CIE-LABlab(41.25, 51.30, -47.85)
CIE-LCHlch(41.25, 70.15, 316.99°)
OKLaboklab(51.58% 0.122 -0.1348)
OKLCHoklch(51.58% 0.182 312.2)
XYZxyz(20.1382, 12.0234, 42.8463)
Luminance0.1202 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3EB1 #65B13E
analogous
#513EB1 #8A3EB1 #B13E9F
triadic
#8A3EB1 #B18A3E #3EB18A
tetradic
#8A3EB1 #B1513E #65B13E #3E9FB1
square
#8A3EB1 #B1513E #65B13E #3E9FB1
split-complementary
#8A3EB1 #9FB13E #3EB151
monochromatic
#431E56 #672E84 #8A3EB1 #A664C9 #C091D8

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A3EB1#FFFFFF#000000##FFFFFF
##8A3EB11.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)
#005DB4
Deuteranopia (green-blind)
#3463AE
Tritanopia (blue-blind)
#865572
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #8a3eb1;
/* rgb */ color: rgb(138, 62, 177);
/* oklch */ color: oklch(51.6% 0.182 312.2);
Tailwind
colors: {
  custom: {
    50: '#b078c9',
    500: '#8a3eb1',
    950: '#000000',
  },
}
SCSS
$custom: #8a3eb1;
$custom-light: #b078c9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3eb1",
  "rgb": {
    "r": 138,
    "g": 62,
    "b": 177
  },
  "hsl": {
    "h": 279.652,
    "s": 48.117,
    "l": 46.863
  },
  "oklch": {
    "l": 0.51583,
    "c": 0.18181,
    "h": 312.2
  },
  "luminance": 0.12023
}

Semantic roles & 50–950 ramp

primary
#8A3EB1
secondary
#9CC487
accent
#D8507E
background
#FBF7FC
surface
#F6EEF8
border
#D0C9D1
text
#110913
muted
#807B82

Preview Lab

Preview with #8A3EB1

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

Preview Lab → · Contrast checker → · Palette generator →

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