#8A3FB1#8A3FB1

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

Color values

HEX#8A3FB1
RGBrgb(138, 63, 177)
HSLhsl(279, 48%, 47%)
HSVhsv(279, 64%, 69%)
CMYKcmyk(22%, 64.4%, 0%, 30.6%)
CIE-LABlab(41.43, 50.82, -47.57)
CIE-LCHlch(41.43, 69.61, 316.89°)
OKLaboklab(51.71% 0.1208 -0.134)
OKLCHoklch(51.71% 0.18 312.1)
XYZxyz(20.1931, 12.1331, 42.8646)
Luminance0.1213 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3FB1 #66B13F
analogous
#513FB1 #8A3FB1 #B13F9F
triadic
#8A3FB1 #B18A3F #3FB18A
tetradic
#8A3FB1 #B1513F #66B13F #3F9FB1
square
#8A3FB1 #B1513F #66B13F #3F9FB1
split-complementary
#8A3FB1 #9FB13F #3FB151
monochromatic
#441F57 #672F84 #8A3FB1 #A665C8 #C092D8

Accessibility & contrast

On white

6.13
#8A3FB1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#8A3FB1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3FB1
6.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3FB1#FFFFFF#000000##FFFFFF
##8A3FB11.006.133.436.13
#FFFFFF6.131.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#035EB4
Deuteranopia (green-blind)
#3563AE
Tritanopia (blue-blind)
#865572
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #8a3fb1;
/* rgb */ color: rgb(138, 63, 177);
/* oklch */ color: oklch(51.7% 0.180 312.1);
Tailwind
colors: {
  custom: {
    50: '#af79c9',
    500: '#8a3fb1',
    950: '#000000',
  },
}
SCSS
$custom: #8a3fb1;
$custom-light: #af79c9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3fb1",
  "rgb": {
    "r": 138,
    "g": 63,
    "b": 177
  },
  "hsl": {
    "h": 279.474,
    "s": 47.5,
    "l": 47.059
  },
  "oklch": {
    "l": 0.51708,
    "c": 0.18041,
    "h": 312.1
  },
  "luminance": 0.12133
}

Semantic roles & 50–950 ramp

primary
#8A3FB1
secondary
#9DC488
accent
#D7517F
background
#FBF7FC
surface
#F6EEF8
border
#D0C9D1
text
#110913
muted
#807B82

Preview Lab

Preview with #8A3FB1

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

Preview Lab → · Contrast checker → · Palette generator →

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