#8E50B2#8E50B2

#8E50B2 is a mid, vivid violet. Relative luminance 0.147; OKLCH L 54.6% C 0.157 H 311.5°. Best body text is #FFFFFF at 5.33:1 contrast (WCAG AA passes).

Color values

HEX#8E50B2
RGBrgb(142, 80, 178)
HSLhsl(278, 39%, 51%)
HSVhsv(278, 55%, 70%)
CMYKcmyk(20.2%, 55.1%, 0%, 30.2%)
CIE-LABlab(45.22, 43.37, -42.06)
CIE-LCHlch(45.22, 60.42, 315.87°)
OKLaboklab(54.61% 0.1042 -0.1178)
OKLCHoklch(54.61% 0.157 311.5)
XYZxyz(22.0584, 14.7029, 43.7868)
Luminance0.1470 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E50B2 #74B250
analogous
#5D50B2 #8E50B2 #B250A5
triadic
#8E50B2 #B28E50 #50B28E
tetradic
#8E50B2 #B25D50 #74B250 #50A5B2
square
#8E50B2 #B25D50 #74B250 #50A5B2
split-complementary
#8E50B2 #A5B250 #50B25D
monochromatic
#4B295E #6D3C89 #8E50B2 #A97AC5 #C5A5D7

Accessibility & contrast

On white

5.33
#8E50B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.94
#8E50B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E50B2
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E50B2#FFFFFF#000000##FFFFFF
##8E50B21.005.333.945.33
#FFFFFF5.331.0021.001.00
#0000003.9421.001.0021.00
##FFFFFF5.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3468B5
Deuteranopia (green-blind)
#496CB0
Tritanopia (blue-blind)
#8A6179
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #8e50b2;
/* rgb */ color: rgb(142, 80, 178);
/* oklch */ color: oklch(54.6% 0.157 311.5);
Tailwind
colors: {
  custom: {
    50: '#b184c9',
    500: '#8e50b2',
    950: '#000000',
  },
}
SCSS
$custom: #8e50b2;
$custom-light: #b184c9;
$custom-dark: #000000;
JSON
{
  "hex": "#8e50b2",
  "rgb": {
    "r": 142,
    "g": 80,
    "b": 178
  },
  "hsl": {
    "h": 277.959,
    "s": 38.889,
    "l": 50.588
  },
  "oklch": {
    "l": 0.54606,
    "c": 0.15728,
    "h": 311.5
  },
  "luminance": 0.14702
}

Semantic roles & 50–950 ramp

primary
#8E50B2
secondary
#A9C599
accent
#CF5984
background
#FBF8FC
surface
#F6EFF8
border
#D0CAD1
text
#110B13
muted
#807C82

Preview Lab

Preview with #8E50B2

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

Preview Lab → · Contrast checker → · Palette generator →

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