#8E2EB7#8E2EB7

#8E2EB7 is a mid, highly saturated purple. Relative luminance 0.111; OKLCH L 50.8% C 0.209 H 313.4°. Best body text is #FFFFFF at 6.51:1 contrast (WCAG AA passes).

Color values

HEX#8E2EB7
RGBrgb(142, 46, 183)
HSLhsl(282, 60%, 45%)
HSVhsv(282, 75%, 72%)
CMYKcmyk(22.4%, 74.9%, 0%, 28.2%)
CIE-LABlab(39.79, 60.25, -53.72)
CIE-LCHlch(39.79, 80.72, 318.28°)
OKLaboklab(50.78% 0.1435 -0.1518)
OKLCHoklch(50.78% 0.209 313.4)
XYZxyz(20.6781, 11.1243, 45.8485)
Luminance0.1112 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E2EB7 #57B72E
analogous
#4A2EB7 #8E2EB7 #B72E9B
triadic
#8E2EB7 #B78E2E #2EB78E
tetradic
#8E2EB7 #B74A2E #57B72E #2E9BB7
square
#8E2EB7 #B74A2E #57B72E #2E9BB7
split-complementary
#8E2EB7 #9BB72E #2EB74A
monochromatic
#421555 #682286 #8E2EB7 #AB4FD3 #C380DF

Accessibility & contrast

On white

6.51
#8E2EB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.22
#8E2EB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E2EB7
6.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E2EB7#FFFFFF#000000##FFFFFF
##8E2EB71.006.513.226.51
#FFFFFF6.511.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059BB
Deuteranopia (green-blind)
#2160B4
Tritanopia (blue-blind)
#8A4D71
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #8e2eb7;
/* rgb */ color: rgb(142, 46, 183);
/* oklch */ color: oklch(50.8% 0.209 313.4);
Tailwind
colors: {
  custom: {
    50: '#b371cd',
    500: '#8e2eb7',
    950: '#000000',
  },
}
SCSS
$custom: #8e2eb7;
$custom-light: #b371cd;
$custom-dark: #000000;
JSON
{
  "hex": "#8e2eb7",
  "rgb": {
    "r": 142,
    "g": 46,
    "b": 183
  },
  "hsl": {
    "h": 282.044,
    "s": 59.825,
    "l": 44.902
  },
  "oklch": {
    "l": 0.50781,
    "c": 0.20888,
    "h": 313.4
  },
  "luminance": 0.11124
}

Semantic roles & 50–950 ramp

primary
#8E2EB7
secondary
#90C879
accent
#E34574
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#120814
muted
#817B82

Preview Lab

Preview with #8E2EB7

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

Preview Lab → · Contrast checker → · Palette generator →

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