#8A34C6#8A34C6

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

Color values

HEX#8A34C6
RGBrgb(138, 52, 198)
HSLhsl(275, 58%, 49%)
HSVhsv(275, 74%, 78%)
CMYKcmyk(30.3%, 73.7%, 0%, 22.4%)
CIE-LABlab(41.12, 60.34, -60.39)
CIE-LCHlch(41.12, 85.37, 314.98°)
OKLaboklab(51.94% 0.1301 -0.1715)
OKLCHoklch(51.94% 0.215 307.2)
XYZxyz(21.9001, 11.9368, 54.5654)
Luminance0.1194 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A34C6 #70C634
analogous
#4134C6 #8A34C6 #C634B9
triadic
#8A34C6 #C68A34 #34C68A
tetradic
#8A34C6 #C64134 #70C634 #34B9C6
square
#8A34C6 #C64134 #70C634 #34B9C6
split-complementary
#8A34C6 #B9C634 #34C641
monochromatic
#461B65 #682796 #8A34C6 #A662D6 #C192E2

Accessibility & contrast

On white

6.20
#8A34C6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.39
#8A34C6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A34C6
6.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A34C6#FFFFFF#000000##FFFFFF
##8A34C61.006.203.396.20
#FFFFFF6.201.0021.001.00
#0000003.3921.001.0021.00
##FFFFFF6.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ECA
Deuteranopia (green-blind)
#0062C3
Tritanopia (blue-blind)
#80577B
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #8a34c6;
/* rgb */ color: rgb(138, 52, 198);
/* oklch */ color: oklch(51.9% 0.215 307.2);
Tailwind
colors: {
  custom: {
    50: '#b174d8',
    500: '#8a34c6',
    950: '#000000',
  },
}
SCSS
$custom: #8a34c6;
$custom-light: #b174d8;
$custom-dark: #000000;
JSON
{
  "hex": "#8a34c6",
  "rgb": {
    "r": 138,
    "g": 52,
    "b": 198
  },
  "hsl": {
    "h": 275.342,
    "s": 58.4,
    "l": 49.02
  },
  "oklch": {
    "l": 0.5194,
    "c": 0.21531,
    "h": 307.2
  },
  "luminance": 0.11936
}

Semantic roles & 50–950 ramp

primary
#8A34C6
secondary
#A5CD89
accent
#E24686
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110915
muted
#807B83

Preview Lab

Preview with #8A34C6

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

Preview Lab → · Contrast checker → · Palette generator →

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