#8E30C4#8E30C4

#8E30C4 is a mid, highly saturated violet. Relative luminance 0.118; OKLCH L 51.9% C 0.219 H 309.6°. Best body text is #FFFFFF at 6.23:1 contrast (WCAG AA passes).

Color values

HEX#8E30C4
RGBrgb(142, 48, 196)
HSLhsl(278, 61%, 48%)
HSVhsv(278, 76%, 77%)
CMYKcmyk(27.6%, 75.5%, 0%, 23.1%)
CIE-LABlab(40.98, 62.21, -59.42)
CIE-LCHlch(40.98, 86.03, 316.31°)
OKLaboklab(51.91% 0.1395 -0.1685)
OKLCHoklch(51.91% 0.219 309.6)
XYZxyz(22.1741, 11.8507, 53.3331)
Luminance0.1185 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E30C4 #66C430
analogous
#4430C4 #8E30C4 #C430B0
triadic
#8E30C4 #C48E30 #30C48E
tetradic
#8E30C4 #C44430 #66C430 #30B0C4
square
#8E30C4 #C44430 #66C430 #30B0C4
split-complementary
#8E30C4 #B0C430 #30C444
monochromatic
#471862 #6A2493 #8E30C4 #A95AD7 #C38CE3

Accessibility & contrast

On white

6.23
#8E30C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#8E30C4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E30C4
6.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E30C4#FFFFFF#000000##FFFFFF
##8E30C41.006.233.376.23
#FFFFFF6.231.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DC8
Deuteranopia (green-blind)
#0062C1
Tritanopia (blue-blind)
#865478
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #8e30c4;
/* rgb */ color: rgb(142, 48, 196);
/* oklch */ color: oklch(51.9% 0.219 309.6);
Tailwind
colors: {
  custom: {
    50: '#b472d7',
    500: '#8e30c4',
    950: '#000000',
  },
}
SCSS
$custom: #8e30c4;
$custom-light: #b472d7;
$custom-dark: #000000;
JSON
{
  "hex": "#8e30c4",
  "rgb": {
    "r": 142,
    "g": 48,
    "b": 196
  },
  "hsl": {
    "h": 278.108,
    "s": 60.656,
    "l": 47.843
  },
  "oklch": {
    "l": 0.51913,
    "c": 0.21876,
    "h": 309.6
  },
  "luminance": 0.1185
}

Semantic roles & 50–950 ramp

primary
#8E30C4
secondary
#9ECD83
accent
#E4447E
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#120914
muted
#817B83

Preview Lab

Preview with #8E30C4

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

Preview Lab → · Contrast checker → · Palette generator →

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