#8A34B5#8A34B5

#8A34B5 is a mid, vivid purple. Relative luminance 0.112; OKLCH L 50.7% C 0.199 H 311.9°. Best body text is #FFFFFF at 6.48:1 contrast (WCAG AA passes).

Color values

HEX#8A34B5
RGBrgb(138, 52, 181)
HSLhsl(280, 55%, 46%)
HSVhsv(280, 71%, 71%)
CMYKcmyk(23.8%, 71.3%, 0%, 29%)
CIE-LABlab(39.91, 56.65, -52.37)
CIE-LCHlch(39.91, 77.15, 317.25°)
OKLaboklab(50.7% 0.1328 -0.148)
OKLCHoklch(50.7% 0.199 311.9)
XYZxyz(20.0482, 11.1960, 44.8120)
Luminance0.1119 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A34B5 #5FB534
analogous
#4934B5 #8A34B5 #B5349F
triadic
#8A34B5 #B58A34 #34B58A
tetradic
#8A34B5 #B54934 #5FB534 #349FB5
square
#8A34B5 #B54934 #5FB534 #349FB5
split-complementary
#8A34B5 #9FB534 #34B549
monochromatic
#421956 #662685 #8A34B5 #A757CF #C087DC

Accessibility & contrast

On white

6.48
#8A34B5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.24
#8A34B5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A34B5
6.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A34B5#FFFFFF#000000##FFFFFF
##8A34B51.006.483.246.48
#FFFFFF6.481.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AB9
Deuteranopia (green-blind)
#2460B2
Tritanopia (blue-blind)
#855071
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #8a34b5;
/* rgb */ color: rgb(138, 52, 181);
/* oklch */ color: oklch(50.7% 0.199 311.9);
Tailwind
colors: {
  custom: {
    50: '#b073cc',
    500: '#8a34b5',
    950: '#000000',
  },
}
SCSS
$custom: #8a34b5;
$custom-light: #b073cc;
$custom-dark: #000000;
JSON
{
  "hex": "#8a34b5",
  "rgb": {
    "r": 138,
    "g": 52,
    "b": 181
  },
  "hsl": {
    "h": 280,
    "s": 55.365,
    "l": 45.686
  },
  "oklch": {
    "l": 0.50703,
    "c": 0.19881,
    "h": 311.9
  },
  "luminance": 0.11195
}

Semantic roles & 50–950 ramp

primary
#8A34B5
secondary
#96C67F
accent
#DF497B
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110913
muted
#807B82

Preview Lab

Preview with #8A34B5

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

Preview Lab → · Contrast checker → · Palette generator →

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