#8D34B2#8D34B2

#8D34B2 is a mid, vivid purple. Relative luminance 0.113; OKLCH L 50.9% C 0.197 H 314.1°. Best body text is #FFFFFF at 6.43:1 contrast (WCAG AA passes).

Color values

HEX#8D34B2
RGBrgb(141, 52, 178)
HSLhsl(282, 55%, 45%)
HSVhsv(282, 71%, 70%)
CMYKcmyk(20.8%, 70.8%, 0%, 30.2%)
CIE-LABlab(40.14, 56.64, -50.21)
CIE-LCHlch(40.14, 75.69, 318.45°)
OKLaboklab(50.89% 0.137 -0.1415)
OKLCHoklch(50.89% 0.197 314.1)
XYZxyz(20.2470, 11.3337, 43.2319)
Luminance0.1133 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D34B2 #59B234
analogous
#4E34B2 #8D34B2 #B23498
triadic
#8D34B2 #B28D34 #34B28D
tetradic
#8D34B2 #B24E34 #59B234 #3498B2
square
#8D34B2 #B24E34 #59B234 #3498B2
split-complementary
#8D34B2 #98B234 #34B24E
monochromatic
#421853 #672683 #8D34B2 #AA56CE #C285DB

Accessibility & contrast

On white

6.43
#8D34B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#8D34B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8D34B2
6.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D34B2#FFFFFF#000000##FFFFFF
##8D34B21.006.433.276.43
#FFFFFF6.431.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AB6
Deuteranopia (green-blind)
#2D61AF
Tritanopia (blue-blind)
#8A4E6F
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #8d34b2;
/* rgb */ color: rgb(141, 52, 178);
/* oklch */ color: oklch(50.9% 0.197 314.1);
Tailwind
colors: {
  custom: {
    50: '#b273ca',
    500: '#8d34b2',
    950: '#000000',
  },
}
SCSS
$custom: #8d34b2;
$custom-light: #b273ca;
$custom-dark: #000000;
JSON
{
  "hex": "#8d34b2",
  "rgb": {
    "r": 141,
    "g": 52,
    "b": 178
  },
  "hsl": {
    "h": 282.381,
    "s": 54.783,
    "l": 45.098
  },
  "oklch": {
    "l": 0.5089,
    "c": 0.19696,
    "h": 314.1
  },
  "luminance": 0.11333
}

Semantic roles & 50–950 ramp

primary
#8D34B2
secondary
#92C57D
accent
#DE4A75
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110913
muted
#807B82

Preview Lab

Preview with #8D34B2

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

Preview Lab → · Contrast checker → · Palette generator →

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