#8E38CF#8E38CF

#8E38CF is a mid, highly saturated violet. Relative luminance 0.131; OKLCH L 53.5% C 0.221 H 306.1°. Best body text is #FFFFFF at 5.81:1 contrast (WCAG AA passes).

Color values

HEX#8E38CF
RGBrgb(142, 56, 207)
HSLhsl(274, 61%, 52%)
HSVhsv(274, 73%, 81%)
CMYKcmyk(31.4%, 72.9%, 0%, 18.8%)
CIE-LABlab(42.89, 61.44, -62.70)
CIE-LCHlch(42.89, 87.79, 314.42°)
OKLaboklab(53.52% 0.1301 -0.1782)
OKLCHoklch(53.52% 0.221 306.1)
XYZxyz(23.8295, 13.0843, 60.2895)
Luminance0.1308 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E38CF #79CF38
analogous
#4338CF #8E38CF #CF38C5
triadic
#8E38CF #CF8E38 #38CF8E
tetradic
#8E38CF #CF4338 #79CF38 #38C5CF
square
#8E38CF #CF4338 #79CF38 #38C5CF
split-complementary
#8E38CF #C5CF38 #38CF43
monochromatic
#4C1B71 #6D27A3 #8E38CF #AA69DB #C69BE7

Accessibility & contrast

On white

5.81
#8E38CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.62
#8E38CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E38CF
5.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E38CF#FFFFFF#000000##FFFFFF
##8E38CF1.005.813.625.81
#FFFFFF5.811.0021.001.00
#0000003.6221.001.0021.00
##FFFFFF5.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063D3
Deuteranopia (green-blind)
#0066CC
Tritanopia (blue-blind)
#825C81
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #8e38cf;
/* rgb */ color: rgb(142, 56, 207);
/* oklch */ color: oklch(53.5% 0.221 306.1);
Tailwind
colors: {
  custom: {
    50: '#b477df',
    500: '#8e38cf',
    950: '#000000',
  },
}
SCSS
$custom: #8e38cf;
$custom-light: #b477df;
$custom-dark: #000000;
JSON
{
  "hex": "#8e38cf",
  "rgb": {
    "r": 142,
    "g": 56,
    "b": 207
  },
  "hsl": {
    "h": 274.172,
    "s": 61.134,
    "l": 51.569
  },
  "oklch": {
    "l": 0.53516,
    "c": 0.22067,
    "h": 306.1
  },
  "luminance": 0.13084
}

Semantic roles & 50–950 ramp

primary
#8E38CF
secondary
#ADD390
accent
#E44489
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#120915
muted
#817B83

Preview Lab

Preview with #8E38CF

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

Preview Lab → · Contrast checker → · Palette generator →

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