#8A34C4#8A34C4

#8A34C4 is a mid, highly saturated violet. Relative luminance 0.118; OKLCH L 51.8% C 0.213 H 307.7°. Best body text is #FFFFFF at 6.23:1 contrast (WCAG AA passes).

Color values

HEX#8A34C4
RGBrgb(138, 52, 196)
HSLhsl(276, 58%, 49%)
HSVhsv(276, 73%, 77%)
CMYKcmyk(29.6%, 73.5%, 0%, 23.1%)
CIE-LABlab(40.97, 59.90, -59.46)
CIE-LCHlch(40.97, 84.40, 315.21°)
OKLaboklab(51.79% 0.1305 -0.1688)
OKLCHoklch(51.79% 0.213 307.7)
XYZxyz(21.6709, 11.8451, 53.3585)
Luminance0.1184 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A34C4 #6EC434
analogous
#4234C4 #8A34C4 #C434B6
triadic
#8A34C4 #C48A34 #34C48A
tetradic
#8A34C4 #C44234 #6EC434 #34B6C4
square
#8A34C4 #C44234 #6EC434 #34B6C4
split-complementary
#8A34C4 #B6C434 #34C442
monochromatic
#461A63 #682794 #8A34C4 #A660D5 #C191E2

Accessibility & contrast

On white

6.23
#8A34C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#8A34C4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A34C4
6.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A34C4#FFFFFF#000000##FFFFFF
##8A34C41.006.233.376.23
#FFFFFF6.231.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EC8
Deuteranopia (green-blind)
#0061C1
Tritanopia (blue-blind)
#815679
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #8a34c4;
/* rgb */ color: rgb(138, 52, 196);
/* oklch */ color: oklch(51.8% 0.213 307.7);
Tailwind
colors: {
  custom: {
    50: '#b174d7',
    500: '#8a34c4',
    950: '#000000',
  },
}
SCSS
$custom: #8a34c4;
$custom-light: #b174d7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a34c4",
  "rgb": {
    "r": 138,
    "g": 52,
    "b": 196
  },
  "hsl": {
    "h": 275.833,
    "s": 58.065,
    "l": 48.627
  },
  "oklch": {
    "l": 0.5179,
    "c": 0.21336,
    "h": 307.7
  },
  "luminance": 0.11845
}

Semantic roles & 50–950 ramp

primary
#8A34C4
secondary
#A3CC87
accent
#E14785
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110914
muted
#807B83

Preview Lab

Preview with #8A34C4

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

Preview Lab → · Contrast checker → · Palette generator →

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