#8E38C4#8E38C4

#8E38C4 is a mid, highly saturated violet. Relative luminance 0.126; OKLCH L 52.7% C 0.210 H 308.9°. Best body text is #FFFFFF at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#8E38C4
RGBrgb(142, 56, 196)
HSLhsl(277, 56%, 49%)
HSVhsv(277, 71%, 77%)
CMYKcmyk(27.6%, 71.4%, 0%, 23.1%)
CIE-LABlab(42.10, 59.01, -57.60)
CIE-LCHlch(42.10, 82.46, 315.69°)
OKLaboklab(52.71% 0.1319 -0.1632)
OKLCHoklch(52.71% 0.21 308.9)
XYZxyz(22.5313, 12.5651, 53.4522)
Luminance0.1257 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E38C4 #6EC438
analogous
#4838C4 #8E38C4 #C438B4
triadic
#8E38C4 #C48E38 #38C48E
tetradic
#8E38C4 #C44838 #6EC438 #38B4C4
square
#8E38C4 #C44838 #6EC438 #38B4C4
split-complementary
#8E38C4 #B4C438 #38C448
monochromatic
#491D65 #6C2A94 #8E38C4 #A966D3 #C496E1

Accessibility & contrast

On white

5.98
#8E38C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#8E38C4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E38C4
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E38C4#FFFFFF#000000##FFFFFF
##8E38C41.005.983.515.98
#FFFFFF5.981.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060C8
Deuteranopia (green-blind)
#1564C1
Tritanopia (blue-blind)
#86587B
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #8e38c4;
/* rgb */ color: rgb(142, 56, 196);
/* oklch */ color: oklch(52.7% 0.210 308.9);
Tailwind
colors: {
  custom: {
    50: '#b476d7',
    500: '#8e38c4',
    950: '#000000',
  },
}
SCSS
$custom: #8e38c4;
$custom-light: #b476d7;
$custom-dark: #000000;
JSON
{
  "hex": "#8e38c4",
  "rgb": {
    "r": 142,
    "g": 56,
    "b": 196
  },
  "hsl": {
    "h": 276.857,
    "s": 55.556,
    "l": 49.412
  },
  "oklch": {
    "l": 0.52707,
    "c": 0.20989,
    "h": 308.9
  },
  "luminance": 0.12565
}

Semantic roles & 50–950 ramp

primary
#8E38C4
secondary
#A5CC8C
accent
#DF4983
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#120914
muted
#817B83

Preview Lab

Preview with #8E38C4

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

Preview Lab → · Contrast checker → · Palette generator →

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