#8E38C0#8E38C0

#8E38C0 is a mid, highly saturated violet. Relative luminance 0.124; OKLCH L 52.4% C 0.206 H 310.0°. Best body text is #FFFFFF at 6.04:1 contrast (WCAG AA passes).

Color values

HEX#8E38C0
RGBrgb(142, 56, 192)
HSLhsl(278, 55%, 49%)
HSVhsv(278, 71%, 75%)
CMYKcmyk(26%, 70.8%, 0%, 24.7%)
CIE-LABlab(41.82, 58.14, -55.72)
CIE-LCHlch(41.82, 80.53, 316.22°)
OKLaboklab(52.42% 0.1325 -0.1577)
OKLCHoklch(52.42% 0.206 310)
XYZxyz(22.0821, 12.3854, 51.0863)
Luminance0.1239 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E38C0 #6AC038
analogous
#4A38C0 #8E38C0 #C038AE
triadic
#8E38C0 #C08E38 #38C08E
tetradic
#8E38C0 #C04A38 #6AC038 #38AEC0
square
#8E38C0 #C04A38 #6AC038 #38AEC0
split-complementary
#8E38C0 #AEC038 #38C04A
monochromatic
#481C61 #6B2A91 #8E38C0 #A964D2 #C393DF

Accessibility & contrast

On white

6.04
#8E38C0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#8E38C0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E38C0
6.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E38C0#FFFFFF#000000##FFFFFF
##8E38C01.006.043.486.04
#FFFFFF6.041.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FC4
Deuteranopia (green-blind)
#1E64BD
Tritanopia (blue-blind)
#875678
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #8e38c0;
/* rgb */ color: rgb(142, 56, 192);
/* oklch */ color: oklch(52.4% 0.206 310.0);
Tailwind
colors: {
  custom: {
    50: '#b376d4',
    500: '#8e38c0',
    950: '#000000',
  },
}
SCSS
$custom: #8e38c0;
$custom-light: #b376d4;
$custom-dark: #000000;
JSON
{
  "hex": "#8e38c0",
  "rgb": {
    "r": 142,
    "g": 56,
    "b": 192
  },
  "hsl": {
    "h": 277.941,
    "s": 54.839,
    "l": 48.627
  },
  "oklch": {
    "l": 0.52421,
    "c": 0.20597,
    "h": 310
  },
  "luminance": 0.12385
}

Semantic roles & 50–950 ramp

primary
#8E38C0
secondary
#A1CB89
accent
#DE4A80
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#120914
muted
#817B83

Preview Lab

Preview with #8E38C0

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

Preview Lab → · Contrast checker → · Palette generator →

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