#8E2FB7#8E2FB7

#8E2FB7 is a mid, highly saturated purple. Relative luminance 0.112; OKLCH L 50.9% C 0.208 H 313.3°. Best body text is #FFFFFF at 6.48:1 contrast (WCAG AA passes).

Color values

HEX#8E2FB7
RGBrgb(142, 47, 183)
HSLhsl(282, 59%, 45%)
HSVhsv(282, 74%, 72%)
CMYKcmyk(22.4%, 74.3%, 0%, 28.2%)
CIE-LABlab(39.92, 59.87, -53.50)
CIE-LCHlch(39.92, 80.30, 318.21°)
OKLaboklab(50.87% 0.1426 -0.1511)
OKLCHoklch(50.87% 0.208 313.3)
XYZxyz(20.7176, 11.2034, 45.8617)
Luminance0.1120 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E2FB7 #58B72F
analogous
#4A2FB7 #8E2FB7 #B72F9C
triadic
#8E2FB7 #B78E2F #2FB78E
tetradic
#8E2FB7 #B74A2F #58B72F #2F9CB7
square
#8E2FB7 #B74A2F #58B72F #2F9CB7
split-complementary
#8E2FB7 #9CB72F #2FB74A
monochromatic
#421656 #682286 #8E2FB7 #AB51D2 #C382DF

Accessibility & contrast

On white

6.48
#8E2FB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.24
#8E2FB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E2FB7
6.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E2FB7#FFFFFF#000000##FFFFFF
##8E2FB71.006.483.246.48
#FFFFFF6.481.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.481.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8e2fb7;
/* rgb */ color: rgb(142, 47, 183);
/* oklch */ color: oklch(50.9% 0.208 313.3);
Tailwind
colors: {
  custom: {
    50: '#b371cd',
    500: '#8e2fb7',
    950: '#000000',
  },
}
SCSS
$custom: #8e2fb7;
$custom-light: #b371cd;
$custom-dark: #000000;
JSON
{
  "hex": "#8e2fb7",
  "rgb": {
    "r": 142,
    "g": 47,
    "b": 183
  },
  "hsl": {
    "h": 281.912,
    "s": 59.13,
    "l": 45.098
  },
  "oklch": {
    "l": 0.50874,
    "c": 0.20779,
    "h": 313.3
  },
  "luminance": 0.11203
}

Semantic roles & 50–950 ramp

primary
#8E2FB7
secondary
#91C87A
accent
#E24575
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#120814
muted
#817B82

Preview Lab

Preview with #8E2FB7

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

Preview Lab → · Contrast checker → · Palette generator →

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