#8E38D4#8E38D4

#8E38D4 is a mid, highly saturated violet. Relative luminance 0.133; OKLCH L 53.9% C 0.226 H 304.9°. Best body text is #FFFFFF at 5.73:1 contrast (WCAG AA passes).

Color values

HEX#8E38D4
RGBrgb(142, 56, 212)
HSLhsl(273, 64%, 53%)
HSVhsv(273, 74%, 83%)
CMYKcmyk(33%, 73.6%, 0%, 16.9%)
CIE-LABlab(43.26, 62.56, -64.98)
CIE-LCHlch(43.26, 90.20, 313.92°)
OKLaboklab(53.89% 0.1292 -0.1849)
OKLCHoklch(53.89% 0.226 304.9)
XYZxyz(24.4505, 13.3327, 63.5600)
Luminance0.1333 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E38D4 #7ED438
analogous
#4038D4 #8E38D4 #D438CC
triadic
#8E38D4 #D48E38 #38D48E
tetradic
#8E38D4 #D44038 #7ED438 #38CCD4
square
#8E38D4 #D44038 #7ED438 #38CCD4
split-complementary
#8E38D4 #CCD438 #38D440
monochromatic
#4E1A78 #6E25AA #8E38D4 #AB6ADF #C79DEA

Accessibility & contrast

On white

5.73
#8E38D4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.67
#8E38D4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E38D4
5.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E38D4#FFFFFF#000000##FFFFFF
##8E38D41.005.733.675.73
#FFFFFF5.731.0021.001.00
#0000003.6721.001.0021.00
##FFFFFF5.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064D8
Deuteranopia (green-blind)
#0066D1
Tritanopia (blue-blind)
#815E83
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #8e38d4;
/* rgb */ color: rgb(142, 56, 212);
/* oklch */ color: oklch(53.9% 0.226 304.9);
Tailwind
colors: {
  custom: {
    50: '#b577e2',
    500: '#8e38d4',
    950: '#000000',
  },
}
SCSS
$custom: #8e38d4;
$custom-light: #b577e2;
$custom-dark: #000000;
JSON
{
  "hex": "#8e38d4",
  "rgb": {
    "r": 142,
    "g": 56,
    "b": 212
  },
  "hsl": {
    "h": 273.077,
    "s": 64.463,
    "l": 52.549
  },
  "oklch": {
    "l": 0.53894,
    "c": 0.22557,
    "h": 304.9
  },
  "luminance": 0.13333
}

Semantic roles & 50–950 ramp

primary
#8E38D4
secondary
#B0D692
accent
#E7408B
background
#FBF7FE
surface
#F6EEFC
border
#D0C9D5
text
#120915
muted
#817B84

Preview Lab

Preview with #8E38D4

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

Preview Lab → · Contrast checker → · Palette generator →

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