#8A3BD4#8A3BD4

#8A3BD4 is a mid, highly saturated violet. Relative luminance 0.133; OKLCH L 53.7% C 0.221 H 303.1°. Best body text is #FFFFFF at 5.74:1 contrast (WCAG AA passes).

Color values

HEX#8A3BD4
RGBrgb(138, 59, 212)
HSLhsl(271, 64%, 53%)
HSVhsv(271, 72%, 83%)
CMYKcmyk(34.9%, 72.2%, 0%, 16.9%)
CIE-LABlab(43.19, 60.58, -65.12)
CIE-LCHlch(43.19, 88.94, 312.93°)
OKLaboklab(53.73% 0.121 -0.1855)
OKLCHoklch(53.73% 0.221 303.1)
XYZxyz(23.9261, 13.2847, 63.5783)
Luminance0.1328 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3BD4 #85D43B
analogous
#3D3BD4 #8A3BD4 #D43BD2
triadic
#8A3BD4 #D48A3B #3BD48A
tetradic
#8A3BD4 #D43D3B #85D43B #3BD2D4
square
#8A3BD4 #D43D3B #85D43B #3BD2D4
split-complementary
#8A3BD4 #D2D43B #3BD43D
monochromatic
#4C1B7A #6B26AC #8A3BD4 #A86DDF #C69FEA

Accessibility & contrast

On white

5.74
#8A3BD4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.66
#8A3BD4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3BD4
5.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3BD4#FFFFFF#000000##FFFFFF
##8A3BD41.005.743.665.74
#FFFFFF5.741.0021.001.00
#0000003.6621.001.0021.00
##FFFFFF5.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065D8
Deuteranopia (green-blind)
#0066D1
Tritanopia (blue-blind)
#7B6084
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #8a3bd4;
/* rgb */ color: rgb(138, 59, 212);
/* oklch */ color: oklch(53.7% 0.221 303.1);
Tailwind
colors: {
  custom: {
    50: '#b278e2',
    500: '#8a3bd4',
    950: '#000000',
  },
}
SCSS
$custom: #8a3bd4;
$custom-light: #b278e2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3bd4",
  "rgb": {
    "r": 138,
    "g": 59,
    "b": 212
  },
  "hsl": {
    "h": 270.98,
    "s": 64.017,
    "l": 53.137
  },
  "oklch": {
    "l": 0.53732,
    "c": 0.22144,
    "h": 303.1
  },
  "luminance": 0.13285
}

Semantic roles & 50–950 ramp

primary
#8A3BD4
secondary
#B4D694
accent
#E74191
background
#FBF7FE
surface
#F6EEFC
border
#D0C9D5
text
#120915
muted
#817B84

Preview Lab

Preview with #8A3BD4

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

Preview Lab → · Contrast checker → · Palette generator →

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