#8A34C5#8A34C5

#8A34C5 is a mid, highly saturated violet. Relative luminance 0.119; OKLCH L 51.9% C 0.214 H 307.4°. Best body text is #FFFFFF at 6.22:1 contrast (WCAG AA passes).

Color values

HEX#8A34C5
RGBrgb(138, 52, 197)
HSLhsl(276, 58%, 49%)
HSVhsv(276, 74%, 77%)
CMYKcmyk(29.9%, 73.6%, 0%, 22.7%)
CIE-LABlab(41.04, 60.12, -59.92)
CIE-LCHlch(41.04, 84.88, 315.10°)
OKLaboklab(51.87% 0.1303 -0.1702)
OKLCHoklch(51.87% 0.214 307.4)
XYZxyz(21.7851, 11.8908, 53.9600)
Luminance0.1189 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A34C5 #6FC534
analogous
#4234C5 #8A34C5 #C534B8
triadic
#8A34C5 #C58A34 #34C58A
tetradic
#8A34C5 #C54234 #6FC534 #34B8C5
square
#8A34C5 #C54234 #6FC534 #34B8C5
split-complementary
#8A34C5 #B8C534 #34C542
monochromatic
#461A64 #682795 #8A34C5 #A661D5 #C191E2

Accessibility & contrast

On white

6.22
#8A34C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#8A34C5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A34C5
6.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A34C5#FFFFFF#000000##FFFFFF
##8A34C51.006.223.386.22
#FFFFFF6.221.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EC9
Deuteranopia (green-blind)
#0061C2
Tritanopia (blue-blind)
#80577A
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #8a34c5;
/* rgb */ color: rgb(138, 52, 197);
/* oklch */ color: oklch(51.9% 0.214 307.4);
Tailwind
colors: {
  custom: {
    50: '#b174d7',
    500: '#8a34c5',
    950: '#000000',
  },
}
SCSS
$custom: #8a34c5;
$custom-light: #b174d7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a34c5",
  "rgb": {
    "r": 138,
    "g": 52,
    "b": 197
  },
  "hsl": {
    "h": 275.586,
    "s": 58.233,
    "l": 48.824
  },
  "oklch": {
    "l": 0.51865,
    "c": 0.21434,
    "h": 307.4
  },
  "luminance": 0.1189
}

Semantic roles & 50–950 ramp

primary
#8A34C5
secondary
#A4CD88
accent
#E14685
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110914
muted
#807B83

Preview Lab

Preview with #8A34C5

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

Preview Lab → · Contrast checker → · Palette generator →

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