#8A34C3#8A34C3

#8A34C3 is a mid, highly saturated violet. Relative luminance 0.118; OKLCH L 51.7% C 0.212 H 308.0°. Best body text is #FFFFFF at 6.25:1 contrast (WCAG AA passes).

Color values

HEX#8A34C3
RGBrgb(138, 52, 195)
HSLhsl(276, 58%, 48%)
HSVhsv(276, 73%, 76%)
CMYKcmyk(29.2%, 73.3%, 0%, 23.5%)
CIE-LABlab(40.90, 59.68, -58.99)
CIE-LCHlch(40.90, 83.92, 315.33°)
OKLaboklab(51.72% 0.1307 -0.1674)
OKLCHoklch(51.72% 0.212 308)
XYZxyz(21.5575, 11.7997, 52.7611)
Luminance0.1180 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A34C3 #6DC334
analogous
#4234C3 #8A34C3 #C334B4
triadic
#8A34C3 #C38A34 #34C38A
tetradic
#8A34C3 #C34234 #6DC334 #34B4C3
square
#8A34C3 #C34234 #6DC334 #34B4C3
split-complementary
#8A34C3 #B4C334 #34C342
monochromatic
#461A62 #682793 #8A34C3 #A660D5 #C190E1

Accessibility & contrast

On white

6.25
#8A34C3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#8A34C3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A34C3
6.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A34C3#FFFFFF#000000##FFFFFF
##8A34C31.006.253.366.25
#FFFFFF6.251.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DC7
Deuteranopia (green-blind)
#0061C0
Tritanopia (blue-blind)
#815679
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #8a34c3;
/* rgb */ color: rgb(138, 52, 195);
/* oklch */ color: oklch(51.7% 0.212 308.0);
Tailwind
colors: {
  custom: {
    50: '#b174d6',
    500: '#8a34c3',
    950: '#000000',
  },
}
SCSS
$custom: #8a34c3;
$custom-light: #b174d6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a34c3",
  "rgb": {
    "r": 138,
    "g": 52,
    "b": 195
  },
  "hsl": {
    "h": 276.084,
    "s": 57.895,
    "l": 48.431
  },
  "oklch": {
    "l": 0.51716,
    "c": 0.21239,
    "h": 308
  },
  "luminance": 0.11799
}

Semantic roles & 50–950 ramp

primary
#8A34C3
secondary
#A2CC87
accent
#E14784
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110914
muted
#807B83

Preview Lab

Preview with #8A34C3

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

Preview Lab → · Contrast checker → · Palette generator →

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