#8D34C5#8D34C5

#8D34C5 is a mid, highly saturated violet. Relative luminance 0.121; OKLCH L 52.2% C 0.215 H 308.6°. Best body text is #FFFFFF at 6.12:1 contrast (WCAG AA passes).

Color values

HEX#8D34C5
RGBrgb(141, 52, 197)
HSLhsl(277, 58%, 49%)
HSVhsv(277, 74%, 77%)
CMYKcmyk(28.4%, 73.6%, 0%, 22.7%)
CIE-LABlab(41.45, 60.68, -59.24)
CIE-LCHlch(41.45, 84.80, 315.69°)
OKLaboklab(52.24% 0.1343 -0.168)
OKLCHoklch(52.24% 0.215 308.6)
XYZxyz(22.2885, 12.1503, 53.9836)
Luminance0.1215 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D34C5 #6CC534
analogous
#4534C5 #8D34C5 #C534B5
triadic
#8D34C5 #C58D34 #34C58D
tetradic
#8D34C5 #C54534 #6CC534 #34B5C5
square
#8D34C5 #C54534 #6CC534 #34B5C5
split-complementary
#8D34C5 #B5C534 #34C545
monochromatic
#481A64 #6A2795 #8D34C5 #A861D5 #C391E2

Accessibility & contrast

On white

6.12
#8D34C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#8D34C5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8D34C5
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D34C5#FFFFFF#000000##FFFFFF
##8D34C51.006.123.436.12
#FFFFFF6.121.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EC9
Deuteranopia (green-blind)
#0063C2
Tritanopia (blue-blind)
#84567A
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #8d34c5;
/* rgb */ color: rgb(141, 52, 197);
/* oklch */ color: oklch(52.2% 0.215 308.6);
Tailwind
colors: {
  custom: {
    50: '#b374d7',
    500: '#8d34c5',
    950: '#000000',
  },
}
SCSS
$custom: #8d34c5;
$custom-light: #b374d7;
$custom-dark: #000000;
JSON
{
  "hex": "#8d34c5",
  "rgb": {
    "r": 141,
    "g": 52,
    "b": 197
  },
  "hsl": {
    "h": 276.828,
    "s": 58.233,
    "l": 48.824
  },
  "oklch": {
    "l": 0.52243,
    "c": 0.21513,
    "h": 308.6
  },
  "luminance": 0.1215
}

Semantic roles & 50–950 ramp

primary
#8D34C5
secondary
#A3CD88
accent
#E14682
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#120914
muted
#817B83

Preview Lab

Preview with #8D34C5

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

Preview Lab → · Contrast checker → · Palette generator →

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