#8A3BD5#8A3BD5

#8A3BD5 is a mid, highly saturated violet. Relative luminance 0.133; OKLCH L 53.8% C 0.222 H 302.9°. Best body text is #FFFFFF at 5.73:1 contrast (WCAG AA passes).

Color values

HEX#8A3BD5
RGBrgb(138, 59, 213)
HSLhsl(271, 65%, 53%)
HSVhsv(271, 72%, 84%)
CMYKcmyk(35.2%, 72.3%, 0%, 16.5%)
CIE-LABlab(43.26, 60.81, -65.57)
CIE-LCHlch(43.26, 89.43, 312.84°)
OKLaboklab(53.81% 0.1208 -0.1868)
OKLCHoklch(53.81% 0.222 302.9)
XYZxyz(24.0526, 13.3353, 64.2447)
Luminance0.1333 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3BD5 #86D53B
analogous
#3D3BD5 #8A3BD5 #D53BD3
triadic
#8A3BD5 #D58A3B #3BD58A
tetradic
#8A3BD5 #D53D3B #86D53B #3BD3D5
square
#8A3BD5 #D53D3B #86D53B #3BD3D5
split-complementary
#8A3BD5 #D3D53B #3BD53D
monochromatic
#4C1A7B #6B25AE #8A3BD5 #A86DE0 #C6A0EB

Accessibility & contrast

On white

5.73
#8A3BD5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.67
#8A3BD5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3BD5
5.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3BD5#FFFFFF#000000##FFFFFF
##8A3BD51.005.733.675.73
#FFFFFF5.731.0021.001.00
#0000003.6721.001.0021.00
##FFFFFF5.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065D9
Deuteranopia (green-blind)
#0066D2
Tritanopia (blue-blind)
#7B6185
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #8a3bd5;
/* rgb */ color: rgb(138, 59, 213);
/* oklch */ color: oklch(53.8% 0.222 302.9);
Tailwind
colors: {
  custom: {
    50: '#b278e3',
    500: '#8a3bd5',
    950: '#000000',
  },
}
SCSS
$custom: #8a3bd5;
$custom-light: #b278e3;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3bd5",
  "rgb": {
    "r": 138,
    "g": 59,
    "b": 213
  },
  "hsl": {
    "h": 270.779,
    "s": 64.706,
    "l": 53.333
  },
  "oklch": {
    "l": 0.53809,
    "c": 0.22245,
    "h": 302.9
  },
  "luminance": 0.13335
}

Semantic roles & 50–950 ramp

primary
#8A3BD5
secondary
#B5D795
accent
#E84092
background
#FBF7FE
surface
#F6EEFC
border
#D0C9D5
text
#120916
muted
#817B84

Preview Lab

Preview with #8A3BD5

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

Preview Lab → · Contrast checker → · Palette generator →

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