#8E38CD#8E38CD

#8E38CD is a mid, highly saturated violet. Relative luminance 0.130; OKLCH L 53.4% C 0.219 H 306.6°. Best body text is #FFFFFF at 5.84:1 contrast (WCAG AA passes).

Color values

HEX#8E38CD
RGBrgb(142, 56, 205)
HSLhsl(275, 60%, 51%)
HSVhsv(275, 73%, 80%)
CMYKcmyk(30.7%, 72.7%, 0%, 19.6%)
CIE-LABlab(42.74, 61.00, -61.78)
CIE-LCHlch(42.74, 86.82, 314.64°)
OKLaboklab(53.37% 0.1305 -0.1755)
OKLCHoklch(53.37% 0.219 306.6)
XYZxyz(23.5866, 12.9872, 59.0100)
Luminance0.1299 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E38CD #77CD38
analogous
#4338CD #8E38CD #CD38C1
triadic
#8E38CD #CD8E38 #38CD8E
tetradic
#8E38CD #CD4338 #77CD38 #38C1CD
square
#8E38CD #CD4338 #77CD38 #38C1CD
split-complementary
#8E38CD #C1CD38 #38CD43
monochromatic
#4C1C6F #6D28A0 #8E38CD #AA69D9 #C69AE6

Accessibility & contrast

On white

5.84
#8E38CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.60
#8E38CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E38CD
5.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E38CD#FFFFFF#000000##FFFFFF
##8E38CD1.005.843.605.84
#FFFFFF5.841.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062D1
Deuteranopia (green-blind)
#0065CA
Tritanopia (blue-blind)
#835B80
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #8e38cd;
/* rgb */ color: rgb(142, 56, 205);
/* oklch */ color: oklch(53.4% 0.219 306.6);
Tailwind
colors: {
  custom: {
    50: '#b476dd',
    500: '#8e38cd',
    950: '#000000',
  },
}
SCSS
$custom: #8e38cd;
$custom-light: #b476dd;
$custom-dark: #000000;
JSON
{
  "hex": "#8e38cd",
  "rgb": {
    "r": 142,
    "g": 56,
    "b": 205
  },
  "hsl": {
    "h": 274.631,
    "s": 59.839,
    "l": 51.176
  },
  "oklch": {
    "l": 0.53367,
    "c": 0.21871,
    "h": 306.6
  },
  "luminance": 0.12987
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8E38CD

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

Preview Lab → · Contrast checker → · Palette generator →

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