#8A34B3#8A34B3

#8A34B3 is a mid, vivid purple. Relative luminance 0.111; OKLCH L 50.6% C 0.197 H 312.5°. Best body text is #FFFFFF at 6.52:1 contrast (WCAG AA passes).

Color values

HEX#8A34B3
RGBrgb(138, 52, 179)
HSLhsl(281, 55%, 45%)
HSVhsv(281, 71%, 70%)
CMYKcmyk(22.9%, 70.9%, 0%, 29.8%)
CIE-LABlab(39.77, 56.22, -51.41)
CIE-LCHlch(39.77, 76.18, 317.56°)
OKLaboklab(50.56% 0.133 -0.1452)
OKLCHoklch(50.56% 0.197 312.5)
XYZxyz(19.8444, 11.1145, 43.7390)
Luminance0.1111 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A34B3 #5DB334
analogous
#4B34B3 #8A34B3 #B3349C
triadic
#8A34B3 #B38A34 #34B38A
tetradic
#8A34B3 #B34B34 #5DB334 #349CB3
square
#8A34B3 #B34B34 #5DB334 #349CB3
split-complementary
#8A34B3 #9CB334 #34B34B
monochromatic
#411854 #652684 #8A34B3 #A756CE #C086DC

Accessibility & contrast

On white

6.52
#8A34B3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.22
#8A34B3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A34B3
6.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A34B3#FFFFFF#000000##FFFFFF
##8A34B31.006.523.226.52
#FFFFFF6.521.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059B7
Deuteranopia (green-blind)
#275FB0
Tritanopia (blue-blind)
#854F70
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #8a34b3;
/* rgb */ color: rgb(138, 52, 179);
/* oklch */ color: oklch(50.6% 0.197 312.5);
Tailwind
colors: {
  custom: {
    50: '#b073ca',
    500: '#8a34b3',
    950: '#000000',
  },
}
SCSS
$custom: #8a34b3;
$custom-light: #b073ca;
$custom-dark: #000000;
JSON
{
  "hex": "#8a34b3",
  "rgb": {
    "r": 138,
    "g": 52,
    "b": 179
  },
  "hsl": {
    "h": 280.63,
    "s": 54.978,
    "l": 45.294
  },
  "oklch": {
    "l": 0.50563,
    "c": 0.19688,
    "h": 312.5
  },
  "luminance": 0.11114
}

Semantic roles & 50–950 ramp

primary
#8A34B3
secondary
#95C57D
accent
#DE497A
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110813
muted
#807B82

Preview Lab

Preview with #8A34B3

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

Preview Lab → · Contrast checker → · Palette generator →

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