#8E2FB9#8E2FB9

#8E2FB9 is a mid, highly saturated purple. Relative luminance 0.113; OKLCH L 51.0% C 0.210 H 312.7°. Best body text is #FFFFFF at 6.45:1 contrast (WCAG AA passes).

Color values

HEX#8E2FB9
RGBrgb(142, 47, 185)
HSLhsl(281, 59%, 45%)
HSVhsv(281, 75%, 73%)
CMYKcmyk(23.2%, 74.6%, 0%, 27.5%)
CIE-LABlab(40.06, 60.28, -54.46)
CIE-LCHlch(40.06, 81.24, 317.91°)
OKLaboklab(51.02% 0.1423 -0.1539)
OKLCHoklch(51.02% 0.21 312.7)
XYZxyz(20.9272, 11.2872, 46.9658)
Luminance0.1129 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E2FB9 #5AB92F
analogous
#492FB9 #8E2FB9 #B92F9F
triadic
#8E2FB9 #B98E2F #2FB98E
tetradic
#8E2FB9 #B9492F #5AB92F #2F9FB9
square
#8E2FB9 #B9492F #5AB92F #2F9FB9
split-complementary
#8E2FB9 #9FB92F #2FB949
monochromatic
#431657 #692388 #8E2FB9 #AB52D3 #C383DF

Accessibility & contrast

On white

6.45
#8E2FB9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#8E2FB9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E2FB9
6.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E2FB9#FFFFFF#000000##FFFFFF
##8E2FB91.006.453.266.45
#FFFFFF6.451.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ABD
Deuteranopia (green-blind)
#1E60B6
Tritanopia (blue-blind)
#894E72
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #8e2fb9;
/* rgb */ color: rgb(142, 47, 185);
/* oklch */ color: oklch(51.0% 0.210 312.7);
Tailwind
colors: {
  custom: {
    50: '#b471cf',
    500: '#8e2fb9',
    950: '#000000',
  },
}
SCSS
$custom: #8e2fb9;
$custom-light: #b471cf;
$custom-dark: #000000;
JSON
{
  "hex": "#8e2fb9",
  "rgb": {
    "r": 142,
    "g": 47,
    "b": 185
  },
  "hsl": {
    "h": 281.304,
    "s": 59.483,
    "l": 45.49
  },
  "oklch": {
    "l": 0.51017,
    "c": 0.20963,
    "h": 312.7
  },
  "luminance": 0.11287
}

Semantic roles & 50–950 ramp

primary
#8E2FB9
secondary
#93C97B
accent
#E34576
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#120814
muted
#817B82

Preview Lab

Preview with #8E2FB9

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

Preview Lab → · Contrast checker → · Palette generator →

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