#8A3ABB#8A3ABB

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

Color values

HEX#8A3ABB
RGBrgb(138, 58, 187)
HSLhsl(277, 53%, 48%)
HSVhsv(277, 69%, 73%)
CMYKcmyk(26.2%, 69%, 0%, 26.7%)
CIE-LABlab(41.24, 55.35, -53.75)
CIE-LCHlch(41.24, 77.15, 315.84°)
OKLaboklab(51.79% 0.1258 -0.1521)
OKLCHoklch(51.79% 0.197 309.6)
XYZxyz(20.9622, 12.0177, 48.2194)
Luminance0.1202 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3ABB #6BBB3A
analogous
#493ABB #8A3ABB #BB3AAB
triadic
#8A3ABB #BB8A3A #3ABB8A
tetradic
#8A3ABB #BB493A #6BBB3A #3AABBB
square
#8A3ABB #BB493A #6BBB3A #3AABBB
split-complementary
#8A3ABB #ABBB3A #3ABB49
monochromatic
#451D5E #682C8C #8A3ABB #A663CF #C192DD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A3ABB#FFFFFF#000000##FFFFFF
##8A3ABB1.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)
#005EBF
Deuteranopia (green-blind)
#2362B8
Tritanopia (blue-blind)
#835676
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #8a3abb;
/* rgb */ color: rgb(138, 58, 187);
/* oklch */ color: oklch(51.8% 0.197 309.6);
Tailwind
colors: {
  custom: {
    50: '#b076d0',
    500: '#8a3abb',
    950: '#000000',
  },
}
SCSS
$custom: #8a3abb;
$custom-light: #b076d0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3abb",
  "rgb": {
    "r": 138,
    "g": 58,
    "b": 187
  },
  "hsl": {
    "h": 277.209,
    "s": 52.653,
    "l": 48.039
  },
  "oklch": {
    "l": 0.51785,
    "c": 0.19733,
    "h": 309.6
  },
  "luminance": 0.12017
}

Semantic roles & 50–950 ramp

primary
#8A3ABB
secondary
#A1C888
accent
#DC4C83
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110914
muted
#807B82

Preview Lab

Preview with #8A3ABB

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

Preview Lab → · Contrast checker → · Palette generator →

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