#8E38BB#8E38BB

#8E38BB is a mid, highly saturated violet. Relative luminance 0.122; OKLCH L 52.1% C 0.201 H 311.4°. Best body text is #FFFFFF at 6.12:1 contrast (WCAG AA passes).

Color values

HEX#8E38BB
RGBrgb(142, 56, 187)
HSLhsl(279, 54%, 48%)
HSVhsv(279, 70%, 73%)
CMYKcmyk(24.1%, 70.1%, 0%, 26.7%)
CIE-LABlab(41.48, 57.07, -53.34)
CIE-LCHlch(41.48, 78.11, 316.93°)
OKLaboklab(52.07% 0.1331 -0.1507)
OKLCHoklch(52.07% 0.201 311.4)
XYZxyz(21.5375, 12.1675, 48.2181)
Luminance0.1217 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E38BB #65BB38
analogous
#4C38BB #8E38BB #BB38A7
triadic
#8E38BB #BB8E38 #38BB8E
tetradic
#8E38BB #BB4C38 #65BB38 #38A7BB
square
#8E38BB #BB4C38 #65BB38 #38A7BB
split-complementary
#8E38BB #A7BB38 #38BB4C
monochromatic
#461C5D #6A2A8C #8E38BB #A961D0 #C390DE

Accessibility & contrast

On white

6.12
#8E38BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#8E38BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E38BB
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E38BB#FFFFFF#000000##FFFFFF
##8E38BB1.006.123.436.12
#FFFFFF6.121.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EBF
Deuteranopia (green-blind)
#2763B8
Tritanopia (blue-blind)
#885476
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #8e38bb;
/* rgb */ color: rgb(142, 56, 187);
/* oklch */ color: oklch(52.1% 0.201 311.4);
Tailwind
colors: {
  custom: {
    50: '#b376d0',
    500: '#8e38bb',
    950: '#000000',
  },
}
SCSS
$custom: #8e38bb;
$custom-light: #b376d0;
$custom-dark: #000000;
JSON
{
  "hex": "#8e38bb",
  "rgb": {
    "r": 142,
    "g": 56,
    "b": 187
  },
  "hsl": {
    "h": 279.389,
    "s": 53.909,
    "l": 47.647
  },
  "oklch": {
    "l": 0.5207,
    "c": 0.20108,
    "h": 311.4
  },
  "luminance": 0.12167
}

Semantic roles & 50–950 ramp

primary
#8E38BB
secondary
#9DC886
accent
#DD4B7D
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110914
muted
#807B82

Preview Lab

Preview with #8E38BB

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

Preview Lab → · Contrast checker → · Palette generator →

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