#8B1EB2#8B1EB2

#8B1EB2 is a mid, highly saturated purple. Relative luminance 0.096; OKLCH L 48.7% C 0.219 H 314.6°. Best body text is #FFFFFF at 7.18:1 contrast (WCAG AA passes).

Color values

HEX#8B1EB2
RGBrgb(139, 30, 178)
HSLhsl(284, 71%, 41%)
HSVhsv(284, 83%, 70%)
CMYKcmyk(21.9%, 83.1%, 0%, 30.2%)
CIE-LABlab(37.17, 63.90, -55.01)
CIE-LCHlch(37.17, 84.32, 319.28°)
OKLaboklab(48.74% 0.1535 -0.1556)
OKLCHoklch(48.74% 0.219 314.6)
XYZxyz(19.1463, 9.6326, 42.9616)
Luminance0.0963 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B1EB2 #45B21E
analogous
#411EB2 #8B1EB2 #B21E8F
triadic
#8B1EB2 #B28B1E #1EB28B
tetradic
#8B1EB2 #B2411E #45B21E #1E8FB2
square
#8B1EB2 #B2411E #45B21E #1E8FB2
split-complementary
#8B1EB2 #8FB21E #1EB241
monochromatic
#390C49 #62157E #8B1EB2 #AF31DC #C365E5

Accessibility & contrast

On white

7.18
#8B1EB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#8B1EB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8B1EB2
7.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B1EB2#FFFFFF#000000##FFFFFF
##8B1EB21.007.182.937.18
#FFFFFF7.181.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B6
Deuteranopia (green-blind)
#0E5AAF
Tritanopia (blue-blind)
#87446A
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #8b1eb2;
/* rgb */ color: rgb(139, 30, 178);
/* oklch */ color: oklch(48.7% 0.219 314.6);
Tailwind
colors: {
  custom: {
    50: '#b26aca',
    500: '#8b1eb2',
    950: '#000000',
  },
}
SCSS
$custom: #8b1eb2;
$custom-light: #b26aca;
$custom-dark: #000000;
JSON
{
  "hex": "#8b1eb2",
  "rgb": {
    "r": 139,
    "g": 30,
    "b": 178
  },
  "hsl": {
    "h": 284.189,
    "s": 71.154,
    "l": 40.784
  },
  "oklch": {
    "l": 0.48738,
    "c": 0.21852,
    "h": 314.6
  },
  "luminance": 0.09632
}

Semantic roles & 50–950 ramp

primary
#8B1EB2
secondary
#7DCA62
accent
#EE3A69
background
#FBF6FC
surface
#F6ECF8
border
#D0C7D1
text
#110713
muted
#807A82

Preview Lab

Preview with #8B1EB2

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

Preview Lab → · Contrast checker → · Palette generator →

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