#8E38BC#8E38BC

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

Color values

HEX#8E38BC
RGBrgb(142, 56, 188)
HSLhsl(279, 54%, 48%)
HSVhsv(279, 70%, 74%)
CMYKcmyk(24.5%, 70.2%, 0%, 26.3%)
CIE-LABlab(41.55, 57.28, -53.82)
CIE-LCHlch(41.55, 78.60, 316.79°)
OKLaboklab(52.14% 0.133 -0.1521)
OKLCHoklch(52.14% 0.202 311.2)
XYZxyz(21.6449, 12.2105, 48.7838)
Luminance0.1221 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E38BC #66BC38
analogous
#4C38BC #8E38BC #BC38A8
triadic
#8E38BC #BC8E38 #38BC8E
tetradic
#8E38BC #BC4C38 #66BC38 #38A8BC
square
#8E38BC #BC4C38 #66BC38 #38A8BC
split-complementary
#8E38BC #A8BC38 #38BC4C
monochromatic
#471C5E #6A2A8D #8E38BC #A961D0 #C390DE

Accessibility & contrast

On white

6.10
#8E38BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.44
#8E38BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E38BC
6.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E38BC#FFFFFF#000000##FFFFFF
##8E38BC1.006.103.446.10
#FFFFFF6.101.0021.001.00
#0000003.4421.001.0021.00
##FFFFFF6.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EC0
Deuteranopia (green-blind)
#2564B9
Tritanopia (blue-blind)
#885576
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #8e38bc;
/* rgb */ color: rgb(142, 56, 188);
/* oklch */ color: oklch(52.1% 0.202 311.2);
Tailwind
colors: {
  custom: {
    50: '#b376d1',
    500: '#8e38bc',
    950: '#000000',
  },
}
SCSS
$custom: #8e38bc;
$custom-light: #b376d1;
$custom-dark: #000000;
JSON
{
  "hex": "#8e38bc",
  "rgb": {
    "r": 142,
    "g": 56,
    "b": 188
  },
  "hsl": {
    "h": 279.091,
    "s": 54.098,
    "l": 47.843
  },
  "oklch": {
    "l": 0.5214,
    "c": 0.20206,
    "h": 311.2
  },
  "luminance": 0.1221
}

Semantic roles & 50–950 ramp

primary
#8E38BC
secondary
#9EC987
accent
#DD4A7E
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110914
muted
#807B82

Preview Lab

Preview with #8E38BC

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

Preview Lab → · Contrast checker → · Palette generator →

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