#8A3BDB#8A3BDB

#8A3BDB is a mid, highly saturated violet. Relative luminance 0.136; OKLCH L 54.3% C 0.229 H 301.6°. Best body text is #FFFFFF at 5.63:1 contrast (WCAG AA passes).

Color values

HEX#8A3BDB
RGBrgb(138, 59, 219)
HSLhsl(270, 69%, 55%)
HSVhsv(270, 73%, 86%)
CMYKcmyk(37%, 73.1%, 0%, 14.1%)
CIE-LABlab(43.72, 62.21, -68.26)
CIE-LCHlch(43.72, 92.36, 312.34°)
OKLaboklab(54.27% 0.1196 -0.1947)
OKLCHoklch(54.27% 0.229 301.6)
XYZxyz(24.8283, 13.6455, 68.3299)
Luminance0.1365 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3BDB #8CDB3B
analogous
#3B3CDB #8A3BDB #DA3BDB
triadic
#8A3BDB #DB8A3B #3BDB8A
tetradic
#8A3BDB #DB3B3C #8CDB3B #3BDBDA
square
#8A3BDB #DB3B3C #8CDB3B #3BDBDA
split-complementary
#8A3BDB #DBDA3B #3CDB3B
monochromatic
#4D1883 #6B22B7 #8A3BDB #A96FE4 #C8A2EE

Accessibility & contrast

On white

5.63
#8A3BDB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.73
#8A3BDB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3BDB
5.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3BDB#FFFFFF#000000##FFFFFF
##8A3BDB1.005.633.735.63
#FFFFFF5.631.0021.001.00
#0000003.7321.001.0021.00
##FFFFFF5.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066E0
Deuteranopia (green-blind)
#0066D8
Tritanopia (blue-blind)
#786388
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #8a3bdb;
/* rgb */ color: rgb(138, 59, 219);
/* oklch */ color: oklch(54.3% 0.229 301.6);
Tailwind
colors: {
  custom: {
    50: '#b378e7',
    500: '#8a3bdb',
    950: '#000000',
  },
}
SCSS
$custom: #8a3bdb;
$custom-light: #b378e7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3bdb",
  "rgb": {
    "r": 138,
    "g": 59,
    "b": 219
  },
  "hsl": {
    "h": 269.625,
    "s": 68.966,
    "l": 54.51
  },
  "oklch": {
    "l": 0.54274,
    "c": 0.22852,
    "h": 301.6
  },
  "luminance": 0.13646
}

Semantic roles & 50–950 ramp

primary
#8A3BDB
secondary
#B9DB97
accent
#EC3C95
background
#FBF7FE
surface
#F6EEFD
border
#D0C9D5
text
#120916
muted
#817B84

Preview Lab

Preview with #8A3BDB

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

Preview Lab → · Contrast checker → · Palette generator →

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