#8E38E3#8E38E3

#8E38E3 is a mid, highly saturated violet. Relative luminance 0.141; OKLCH L 55.1% C 0.240 H 301.6°. Best body text is #FFFFFF at 5.49:1 contrast (WCAG AA passes).

Color values

HEX#8E38E3
RGBrgb(142, 56, 227)
HSLhsl(270, 75%, 55%)
HSVhsv(270, 75%, 89%)
CMYKcmyk(37.4%, 75.3%, 0%, 11%)
CIE-LABlab(44.41, 65.96, -71.68)
CIE-LCHlch(44.41, 97.41, 312.62°)
OKLaboklab(55.06% 0.1259 -0.2046)
OKLCHoklch(55.06% 0.24 301.6)
XYZxyz(26.4313, 14.1250, 73.9921)
Luminance0.1412 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E38E3 #8DE338
analogous
#3838E3 #8E38E3 #E338E3
triadic
#8E38E3 #E38E38 #38E38E
tetradic
#8E38E3 #E33838 #8DE338 #38E3E3
square
#8E38E3 #E33838 #8DE338 #38E3E3
split-complementary
#8E38E3 #E3E338 #38E338
monochromatic
#51148D #6F1BC2 #8E38E3 #AC6EEB #CBA3F2

Accessibility & contrast

On white

5.49
#8E38E3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.82
#8E38E3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E38E3
5.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E38E3#FFFFFF#000000##FFFFFF
##8E38E31.005.493.825.49
#FFFFFF5.491.0021.001.00
#0000003.8221.001.0021.00
##FFFFFF5.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068E8
Deuteranopia (green-blind)
#0068E0
Tritanopia (blue-blind)
#7B658C
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #8e38e3;
/* rgb */ color: rgb(142, 56, 227);
/* oklch */ color: oklch(55.1% 0.240 301.6);
Tailwind
colors: {
  custom: {
    50: '#b677ed',
    500: '#8e38e3',
    950: '#000000',
  },
}
SCSS
$custom: #8e38e3;
$custom-light: #b677ed;
$custom-dark: #000000;
JSON
{
  "hex": "#8e38e3",
  "rgb": {
    "r": 142,
    "g": 56,
    "b": 227
  },
  "hsl": {
    "h": 270.175,
    "s": 75.33,
    "l": 55.49
  },
  "oklch": {
    "l": 0.55063,
    "c": 0.24025,
    "h": 301.6
  },
  "luminance": 0.14125
}

Semantic roles & 50–950 ramp

primary
#8E38E3
secondary
#BBDF98
accent
#F23693
background
#FBF7FE
surface
#F7EEFD
border
#D0C9D5
text
#120916
muted
#817B84

Preview Lab

Preview with #8E38E3

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

Preview Lab → · Contrast checker → · Palette generator →

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