#8A3EB3#8A3EB3

#8A3EB3 is a mid, vivid violet. Relative luminance 0.121; OKLCH L 51.7% C 0.184 H 311.5°. Best body text is #FFFFFF at 6.14:1 contrast (WCAG AA passes).

Color values

HEX#8A3EB3
RGBrgb(138, 62, 179)
HSLhsl(279, 49%, 47%)
HSVhsv(279, 65%, 70%)
CMYKcmyk(22.9%, 65.4%, 0%, 29.8%)
CIE-LABlab(41.38, 51.74, -48.82)
CIE-LCHlch(41.38, 71.14, 316.66°)
OKLaboklab(51.72% 0.1219 -0.1376)
OKLCHoklch(51.72% 0.184 311.5)
XYZxyz(20.3390, 12.1037, 43.9039)
Luminance0.1210 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3EB3 #67B33E
analogous
#4F3EB3 #8A3EB3 #B33EA2
triadic
#8A3EB3 #B38A3E #3EB38A
tetradic
#8A3EB3 #B34F3E #67B33E #3EA2B3
square
#8A3EB3 #B34F3E #67B33E #3EA2B3
split-complementary
#8A3EB3 #A2B33E #3EB34F
monochromatic
#441F58 #672E86 #8A3EB3 #A665CA #C092D9

Accessibility & contrast

On white

6.14
#8A3EB3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.42
#8A3EB3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3EB3
6.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3EB3#FFFFFF#000000##FFFFFF
##8A3EB31.006.143.426.14
#FFFFFF6.141.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EB7
Deuteranopia (green-blind)
#3263B0
Tritanopia (blue-blind)
#855573
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #8a3eb3;
/* rgb */ color: rgb(138, 62, 179);
/* oklch */ color: oklch(51.7% 0.184 311.5);
Tailwind
colors: {
  custom: {
    50: '#b078ca',
    500: '#8a3eb3',
    950: '#000000',
  },
}
SCSS
$custom: #8a3eb3;
$custom-light: #b078ca;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3eb3",
  "rgb": {
    "r": 138,
    "g": 62,
    "b": 179
  },
  "hsl": {
    "h": 278.974,
    "s": 48.548,
    "l": 47.255
  },
  "oklch": {
    "l": 0.51715,
    "c": 0.18387,
    "h": 311.5
  },
  "luminance": 0.12103
}

Semantic roles & 50–950 ramp

primary
#8A3EB3
secondary
#9DC588
accent
#D8507F
background
#FBF7FC
surface
#F6EEF8
border
#D0C9D1
text
#110913
muted
#807B82

Preview Lab

Preview with #8A3EB3

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

Preview Lab → · Contrast checker → · Palette generator →

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