#8E38CC#8E38CC

#8E38CC is a mid, highly saturated violet. Relative luminance 0.129; OKLCH L 53.3% C 0.218 H 306.9°. Best body text is #FFFFFF at 5.85:1 contrast (WCAG AA passes).

Color values

HEX#8E38CC
RGBrgb(142, 56, 204)
HSLhsl(275, 59%, 51%)
HSVhsv(275, 73%, 80%)
CMYKcmyk(30.4%, 72.5%, 0%, 20%)
CIE-LABlab(42.67, 60.78, -61.32)
CIE-LCHlch(42.67, 86.33, 314.75°)
OKLaboklab(53.29% 0.1307 -0.1742)
OKLCHoklch(53.29% 0.218 306.9)
XYZxyz(23.4662, 12.9390, 58.3763)
Luminance0.1294 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E38CC #76CC38
analogous
#4438CC #8E38CC #CC38C0
triadic
#8E38CC #CC8E38 #38CC8E
tetradic
#8E38CC #CC4438 #76CC38 #38C0CC
square
#8E38CC #CC4438 #76CC38 #38C0CC
split-complementary
#8E38CC #C0CC38 #38CC44
monochromatic
#4B1C6E #6D299E #8E38CC #AA69D8 #C599E5

Accessibility & contrast

On white

5.85
#8E38CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#8E38CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E38CC
5.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E38CC#FFFFFF#000000##FFFFFF
##8E38CC1.005.853.595.85
#FFFFFF5.851.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062D0
Deuteranopia (green-blind)
#0065C9
Tritanopia (blue-blind)
#835B7F
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #8e38cc;
/* rgb */ color: rgb(142, 56, 204);
/* oklch */ color: oklch(53.3% 0.218 306.9);
Tailwind
colors: {
  custom: {
    50: '#b476dc',
    500: '#8e38cc',
    950: '#000000',
  },
}
SCSS
$custom: #8e38cc;
$custom-light: #b476dc;
$custom-dark: #000000;
JSON
{
  "hex": "#8e38cc",
  "rgb": {
    "r": 142,
    "g": 56,
    "b": 204
  },
  "hsl": {
    "h": 274.865,
    "s": 59.2,
    "l": 50.98
  },
  "oklch": {
    "l": 0.53292,
    "c": 0.21773,
    "h": 306.9
  },
  "luminance": 0.12939
}

Semantic roles & 50–950 ramp

primary
#8E38CC
secondary
#ABD18F
accent
#E24587
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#120915
muted
#817B83

Preview Lab

Preview with #8E38CC

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

Preview Lab → · Contrast checker → · Palette generator →

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