#8E38D1#8E38D1

#8E38D1 is a mid, highly saturated violet. Relative luminance 0.132; OKLCH L 53.7% C 0.223 H 305.7°. Best body text is #FFFFFF at 5.77:1 contrast (WCAG AA passes).

Color values

HEX#8E38D1
RGBrgb(142, 56, 209)
HSLhsl(274, 62%, 52%)
HSVhsv(274, 73%, 82%)
CMYKcmyk(32.1%, 73.2%, 0%, 18%)
CIE-LABlab(43.04, 61.89, -63.61)
CIE-LCHlch(43.04, 88.75, 314.21°)
OKLaboklab(53.67% 0.1298 -0.1809)
OKLCHoklch(53.67% 0.223 305.7)
XYZxyz(24.0756, 13.1828, 61.5854)
Luminance0.1318 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E38D1 #7BD138
analogous
#4138D1 #8E38D1 #D138C8
triadic
#8E38D1 #D18E38 #38D18E
tetradic
#8E38D1 #D14138 #7BD138 #38C8D1
square
#8E38D1 #D14138 #7BD138 #38C8D1
split-complementary
#8E38D1 #C8D138 #38D141
monochromatic
#4D1B74 #6E26A6 #8E38D1 #AA6ADC #C69BE8

Accessibility & contrast

On white

5.77
#8E38D1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.64
#8E38D1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E38D1
5.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E38D1#FFFFFF#000000##FFFFFF
##8E38D11.005.773.645.77
#FFFFFF5.771.0021.001.00
#0000003.6421.001.0021.00
##FFFFFF5.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063D5
Deuteranopia (green-blind)
#0066CE
Tritanopia (blue-blind)
#825D82
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #8e38d1;
/* rgb */ color: rgb(142, 56, 209);
/* oklch */ color: oklch(53.7% 0.223 305.7);
Tailwind
colors: {
  custom: {
    50: '#b577e0',
    500: '#8e38d1',
    950: '#000000',
  },
}
SCSS
$custom: #8e38d1;
$custom-light: #b577e0;
$custom-dark: #000000;
JSON
{
  "hex": "#8e38d1",
  "rgb": {
    "r": 142,
    "g": 56,
    "b": 209
  },
  "hsl": {
    "h": 273.725,
    "s": 62.449,
    "l": 51.961
  },
  "oklch": {
    "l": 0.53666,
    "c": 0.22263,
    "h": 305.7
  },
  "luminance": 0.13183
}

Semantic roles & 50–950 ramp

primary
#8E38D1
secondary
#AED491
accent
#E6428A
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#120915
muted
#817B83

Preview Lab

Preview with #8E38D1

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

Preview Lab → · Contrast checker → · Palette generator →

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