#8E30C5#8E30C5

#8E30C5 is a mid, highly saturated violet. Relative luminance 0.119; OKLCH L 52.0% C 0.220 H 309.3°. Best body text is #FFFFFF at 6.21:1 contrast (WCAG AA passes).

Color values

HEX#8E30C5
RGBrgb(142, 48, 197)
HSLhsl(278, 61%, 48%)
HSVhsv(278, 76%, 77%)
CMYKcmyk(27.9%, 75.6%, 0%, 22.7%)
CIE-LABlab(41.05, 62.42, -59.88)
CIE-LCHlch(41.05, 86.50, 316.19°)
OKLaboklab(51.99% 0.1393 -0.1699)
OKLCHoklch(51.99% 0.22 309.3)
XYZxyz(22.2883, 11.8963, 53.9346)
Luminance0.1190 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E30C5 #67C530
analogous
#4330C5 #8E30C5 #C530B1
triadic
#8E30C5 #C58E30 #30C58E
tetradic
#8E30C5 #C54330 #67C530 #30B1C5
square
#8E30C5 #C54330 #67C530 #30B1C5
split-complementary
#8E30C5 #B1C530 #30C543
monochromatic
#471863 #6B2494 #8E30C5 #A95BD7 #C38CE3

Accessibility & contrast

On white

6.21
#8E30C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#8E30C5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E30C5
6.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E30C5#FFFFFF#000000##FFFFFF
##8E30C51.006.213.386.21
#FFFFFF6.211.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DC9
Deuteranopia (green-blind)
#0062C2
Tritanopia (blue-blind)
#865479
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #8e30c5;
/* rgb */ color: rgb(142, 48, 197);
/* oklch */ color: oklch(52.0% 0.220 309.3);
Tailwind
colors: {
  custom: {
    50: '#b472d7',
    500: '#8e30c5',
    950: '#000000',
  },
}
SCSS
$custom: #8e30c5;
$custom-light: #b472d7;
$custom-dark: #000000;
JSON
{
  "hex": "#8e30c5",
  "rgb": {
    "r": 142,
    "g": 48,
    "b": 197
  },
  "hsl": {
    "h": 277.852,
    "s": 60.816,
    "l": 48.039
  },
  "oklch": {
    "l": 0.51987,
    "c": 0.21969,
    "h": 309.3
  },
  "luminance": 0.11896
}

Semantic roles & 50–950 ramp

primary
#8E30C5
secondary
#9FCD84
accent
#E4447F
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#120914
muted
#817B83

Preview Lab

Preview with #8E30C5

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

Preview Lab → · Contrast checker → · Palette generator →

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