#8A34B6#8A34B6

#8A34B6 is a mid, vivid violet. Relative luminance 0.112; OKLCH L 50.8% C 0.200 H 311.6°. Best body text is #FFFFFF at 6.47:1 contrast (WCAG AA passes).

Color values

HEX#8A34B6
RGBrgb(138, 52, 182)
HSLhsl(280, 56%, 46%)
HSVhsv(280, 71%, 71%)
CMYKcmyk(24.2%, 71.4%, 0%, 28.6%)
CIE-LABlab(39.98, 56.86, -52.85)
CIE-LCHlch(39.98, 77.63, 317.09°)
OKLaboklab(50.77% 0.1326 -0.1494)
OKLCHoklch(50.77% 0.2 311.6)
XYZxyz(20.1511, 11.2372, 45.3544)
Luminance0.1124 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A34B6 #60B634
analogous
#4934B6 #8A34B6 #B634A1
triadic
#8A34B6 #B68A34 #34B68A
tetradic
#8A34B6 #B64934 #60B634 #34A1B6
square
#8A34B6 #B64934 #60B634 #34A1B6
split-complementary
#8A34B6 #A1B634 #34B649
monochromatic
#421957 #662686 #8A34B6 #A758CF #C088DD

Accessibility & contrast

On white

6.47
#8A34B6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.25
#8A34B6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A34B6
6.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A34B6#FFFFFF#000000##FFFFFF
##8A34B61.006.473.256.47
#FFFFFF6.471.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ABA
Deuteranopia (green-blind)
#2260B3
Tritanopia (blue-blind)
#855072
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #8a34b6;
/* rgb */ color: rgb(138, 52, 182);
/* oklch */ color: oklch(50.8% 0.200 311.6);
Tailwind
colors: {
  custom: {
    50: '#b073cd',
    500: '#8a34b6',
    950: '#000000',
  },
}
SCSS
$custom: #8a34b6;
$custom-light: #b073cd;
$custom-dark: #000000;
JSON
{
  "hex": "#8a34b6",
  "rgb": {
    "r": 138,
    "g": 52,
    "b": 182
  },
  "hsl": {
    "h": 279.692,
    "s": 55.556,
    "l": 45.882
  },
  "oklch": {
    "l": 0.50773,
    "c": 0.19978,
    "h": 311.6
  },
  "luminance": 0.11237
}

Semantic roles & 50–950 ramp

primary
#8A34B6
secondary
#97C77F
accent
#DF497C
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110913
muted
#807B82

Preview Lab

Preview with #8A34B6

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

Preview Lab → · Contrast checker → · Palette generator →

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