#8A34B2#8A34B2

#8A34B2 is a mid, vivid purple. Relative luminance 0.111; OKLCH L 50.5% C 0.196 H 312.8°. Best body text is #FFFFFF at 6.53:1 contrast (WCAG AA passes).

Color values

HEX#8A34B2
RGBrgb(138, 52, 178)
HSLhsl(281, 55%, 45%)
HSVhsv(281, 71%, 70%)
CMYKcmyk(22.5%, 70.8%, 0%, 30.2%)
CIE-LABlab(39.71, 56.01, -50.93)
CIE-LCHlch(39.71, 75.70, 317.72°)
OKLaboklab(50.49% 0.1331 -0.1437)
OKLCHoklch(50.49% 0.196 312.8)
XYZxyz(19.7437, 11.0742, 43.2083)
Luminance0.1107 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A34B2 #5CB234
analogous
#4B34B2 #8A34B2 #B2349B
triadic
#8A34B2 #B28A34 #34B28A
tetradic
#8A34B2 #B24B34 #5CB234 #349BB2
square
#8A34B2 #B24B34 #5CB234 #349BB2
split-complementary
#8A34B2 #9BB234 #34B24B
monochromatic
#411853 #652683 #8A34B2 #A756CE #C085DB

Accessibility & contrast

On white

6.53
#8A34B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.21
#8A34B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A34B2
6.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A34B2#FFFFFF#000000##FFFFFF
##8A34B21.006.533.216.53
#FFFFFF6.531.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059B6
Deuteranopia (green-blind)
#285FAF
Tritanopia (blue-blind)
#864F6F
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #8a34b2;
/* rgb */ color: rgb(138, 52, 178);
/* oklch */ color: oklch(50.5% 0.196 312.8);
Tailwind
colors: {
  custom: {
    50: '#b073ca',
    500: '#8a34b2',
    950: '#000000',
  },
}
SCSS
$custom: #8a34b2;
$custom-light: #b073ca;
$custom-dark: #000000;
JSON
{
  "hex": "#8a34b2",
  "rgb": {
    "r": 138,
    "g": 52,
    "b": 178
  },
  "hsl": {
    "h": 280.952,
    "s": 54.783,
    "l": 45.098
  },
  "oklch": {
    "l": 0.50493,
    "c": 0.19592,
    "h": 312.8
  },
  "luminance": 0.11074
}

Semantic roles & 50–950 ramp

primary
#8A34B2
secondary
#94C57D
accent
#DE4A79
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110813
muted
#807B82

Preview Lab

Preview with #8A34B2

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

Preview Lab → · Contrast checker → · Palette generator →

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