#8A3BB4#8A3BB4

#8A3BB4 is a mid, vivid violet. Relative luminance 0.118; OKLCH L 51.4% C 0.189 H 311.5°. Best body text is #FFFFFF at 6.24:1 contrast (WCAG AA passes).

Color values

HEX#8A3BB4
RGBrgb(138, 59, 180)
HSLhsl(279, 51%, 47%)
HSVhsv(279, 67%, 71%)
CMYKcmyk(23.3%, 67.2%, 0%, 29.4%)
CIE-LABlab(40.94, 53.36, -50.12)
CIE-LCHlch(40.94, 73.21, 316.79°)
OKLaboklab(51.42% 0.1253 -0.1414)
OKLCHoklch(51.42% 0.189 311.5)
XYZxyz(20.2819, 11.8270, 44.3856)
Luminance0.1183 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3BB4 #65B43B
analogous
#4E3BB4 #8A3BB4 #B43BA2
triadic
#8A3BB4 #B48A3B #3BB48A
tetradic
#8A3BB4 #B44E3B #65B43B #3BA2B4
square
#8A3BB4 #B44E3B #65B43B #3BA2B4
split-complementary
#8A3BB4 #A2B43B #3BB44E
monochromatic
#431D58 #672C86 #8A3BB4 #A661CB #C08FDA

Accessibility & contrast

On white

6.24
#8A3BB4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#8A3BB4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3BB4
6.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3BB4#FFFFFF#000000##FFFFFF
##8A3BB41.006.243.376.24
#FFFFFF6.241.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DB8
Deuteranopia (green-blind)
#2E62B1
Tritanopia (blue-blind)
#855473
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #8a3bb4;
/* rgb */ color: rgb(138, 59, 180);
/* oklch */ color: oklch(51.4% 0.189 311.5);
Tailwind
colors: {
  custom: {
    50: '#b077cb',
    500: '#8a3bb4',
    950: '#000000',
  },
}
SCSS
$custom: #8a3bb4;
$custom-light: #b077cb;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3bb4",
  "rgb": {
    "r": 138,
    "g": 59,
    "b": 180
  },
  "hsl": {
    "h": 279.174,
    "s": 50.628,
    "l": 46.863
  },
  "oklch": {
    "l": 0.51419,
    "c": 0.18895,
    "h": 311.5
  },
  "luminance": 0.11826
}

Semantic roles & 50–950 ramp

primary
#8A3BB4
secondary
#9CC586
accent
#DA4E7E
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110913
muted
#807B82

Preview Lab

Preview with #8A3BB4

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

Preview Lab → · Contrast checker → · Palette generator →

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