#8A34B0#8A34B0

#8A34B0 is a mid, vivid purple. Relative luminance 0.110; OKLCH L 50.4% C 0.194 H 313.4°. Best body text is #FFFFFF at 6.56:1 contrast (WCAG AA passes).

Color values

HEX#8A34B0
RGBrgb(138, 52, 176)
HSLhsl(282, 54%, 45%)
HSVhsv(282, 70%, 69%)
CMYKcmyk(21.6%, 70.5%, 0%, 31%)
CIE-LABlab(39.57, 55.59, -49.96)
CIE-LCHlch(39.57, 74.74, 318.05°)
OKLaboklab(50.36% 0.1333 -0.1409)
OKLCHoklch(50.36% 0.194 313.4)
XYZxyz(19.5443, 10.9944, 42.1585)
Luminance0.1099 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A34B0 #5AB034
analogous
#4C34B0 #8A34B0 #B03498
triadic
#8A34B0 #B08A34 #34B08A
tetradic
#8A34B0 #B04C34 #5AB034 #3498B0
square
#8A34B0 #B04C34 #5AB034 #3498B0
split-complementary
#8A34B0 #98B034 #34B04C
monochromatic
#401852 #652681 #8A34B0 #A855CD #C084DB

Accessibility & contrast

On white

6.56
#8A34B0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.20
#8A34B0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A34B0
6.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A34B0#FFFFFF#000000##FFFFFF
##8A34B01.006.563.206.56
#FFFFFF6.561.0021.001.00
#0000003.2021.001.0021.00
##FFFFFF6.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059B4
Deuteranopia (green-blind)
#2B5FAD
Tritanopia (blue-blind)
#864E6E
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #8a34b0;
/* rgb */ color: rgb(138, 52, 176);
/* oklch */ color: oklch(50.4% 0.194 313.4);
Tailwind
colors: {
  custom: {
    50: '#b073c8',
    500: '#8a34b0',
    950: '#000000',
  },
}
SCSS
$custom: #8a34b0;
$custom-light: #b073c8;
$custom-dark: #000000;
JSON
{
  "hex": "#8a34b0",
  "rgb": {
    "r": 138,
    "g": 52,
    "b": 176
  },
  "hsl": {
    "h": 281.613,
    "s": 54.386,
    "l": 44.706
  },
  "oklch": {
    "l": 0.50355,
    "c": 0.19398,
    "h": 313.4
  },
  "luminance": 0.10994
}

Semantic roles & 50–950 ramp

primary
#8A34B0
secondary
#92C47C
accent
#DE4A77
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110813
muted
#807B82

Preview Lab

Preview with #8A34B0

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

Preview Lab → · Contrast checker → · Palette generator →

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