#8A3BD6#8A3BD6

#8A3BD6 is a mid, highly saturated violet. Relative luminance 0.134; OKLCH L 53.9% C 0.223 H 302.7°. Best body text is #FFFFFF at 5.71:1 contrast (WCAG AA passes).

Color values

HEX#8A3BD6
RGBrgb(138, 59, 214)
HSLhsl(271, 65%, 54%)
HSVhsv(271, 72%, 84%)
CMYKcmyk(35.5%, 72.4%, 0%, 16.1%)
CIE-LABlab(43.34, 61.04, -66.02)
CIE-LCHlch(43.34, 89.92, 312.76°)
OKLaboklab(53.89% 0.1206 -0.1881)
OKLCHoklch(53.89% 0.223 302.7)
XYZxyz(24.1799, 13.3862, 64.9152)
Luminance0.1339 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3BD6 #87D63B
analogous
#3C3BD6 #8A3BD6 #D63BD4
triadic
#8A3BD6 #D68A3B #3BD68A
tetradic
#8A3BD6 #D63C3B #87D63B #3BD4D6
square
#8A3BD6 #D63C3B #87D63B #3BD4D6
split-complementary
#8A3BD6 #D4D63B #3BD63C
monochromatic
#4C1A7D #6B25AF #8A3BD6 #A86EE1 #C6A0EB

Accessibility & contrast

On white

5.71
#8A3BD6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.68
#8A3BD6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3BD6
5.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3BD6#FFFFFF#000000##FFFFFF
##8A3BD61.005.713.685.71
#FFFFFF5.711.0021.001.00
#0000003.6821.001.0021.00
##FFFFFF5.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065DA
Deuteranopia (green-blind)
#0066D3
Tritanopia (blue-blind)
#7A6185
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #8a3bd6;
/* rgb */ color: rgb(138, 59, 214);
/* oklch */ color: oklch(53.9% 0.223 302.7);
Tailwind
colors: {
  custom: {
    50: '#b278e4',
    500: '#8a3bd6',
    950: '#000000',
  },
}
SCSS
$custom: #8a3bd6;
$custom-light: #b278e4;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3bd6",
  "rgb": {
    "r": 138,
    "g": 59,
    "b": 214
  },
  "hsl": {
    "h": 270.581,
    "s": 65.401,
    "l": 53.529
  },
  "oklch": {
    "l": 0.53886,
    "c": 0.22347,
    "h": 302.7
  },
  "luminance": 0.13386
}

Semantic roles & 50–950 ramp

primary
#8A3BD6
secondary
#B6D895
accent
#E83F92
background
#FBF7FE
surface
#F6EEFC
border
#D0C9D5
text
#120916
muted
#817B84

Preview Lab

Preview with #8A3BD6

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

Preview Lab → · Contrast checker → · Palette generator →

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