#8E38D9#8E38D9

#8E38D9 is a mid, highly saturated violet. Relative luminance 0.136; OKLCH L 54.3% C 0.230 H 303.8°. Best body text is #FFFFFF at 5.65:1 contrast (WCAG AA passes).

Color values

HEX#8E38D9
RGBrgb(142, 56, 217)
HSLhsl(272, 68%, 54%)
HSVhsv(272, 74%, 85%)
CMYKcmyk(34.6%, 74.2%, 0%, 14.9%)
CIE-LABlab(43.64, 63.69, -67.23)
CIE-LCHlch(43.64, 92.61, 313.45°)
OKLaboklab(54.28% 0.1282 -0.1915)
OKLCHoklch(54.28% 0.23 303.8)
XYZxyz(25.0910, 13.5889, 66.9333)
Luminance0.1359 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E38D9 #83D938
analogous
#3D38D9 #8E38D9 #D938D3
triadic
#8E38D9 #D98E38 #38D98E
tetradic
#8E38D9 #D93D38 #83D938 #38D3D9
square
#8E38D9 #D93D38 #83D938 #38D3D9
split-complementary
#8E38D9 #D3D938 #38D93D
monochromatic
#4F187E #6F22B2 #8E38D9 #AB6BE3 #C89FED

Accessibility & contrast

On white

5.65
#8E38D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.72
#8E38D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E38D9
5.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E38D9#FFFFFF#000000##FFFFFF
##8E38D91.005.653.725.65
#FFFFFF5.651.0021.001.00
#0000003.7221.001.0021.00
##FFFFFF5.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065DE
Deuteranopia (green-blind)
#0067D6
Tritanopia (blue-blind)
#7F6086
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #8e38d9;
/* rgb */ color: rgb(142, 56, 217);
/* oklch */ color: oklch(54.3% 0.230 303.8);
Tailwind
colors: {
  custom: {
    50: '#b577e6',
    500: '#8e38d9',
    950: '#000000',
  },
}
SCSS
$custom: #8e38d9;
$custom-light: #b577e6;
$custom-dark: #000000;
JSON
{
  "hex": "#8e38d9",
  "rgb": {
    "r": 142,
    "g": 56,
    "b": 217
  },
  "hsl": {
    "h": 272.05,
    "s": 67.932,
    "l": 53.529
  },
  "oklch": {
    "l": 0.54277,
    "c": 0.23047,
    "h": 303.8
  },
  "luminance": 0.13589
}

Semantic roles & 50–950 ramp

primary
#8E38D9
secondary
#B4D994
accent
#EB3D8E
background
#FBF7FE
surface
#F6EEFC
border
#D0C9D5
text
#120916
muted
#817B84

Preview Lab

Preview with #8E38D9

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

Preview Lab → · Contrast checker → · Palette generator →

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