#8B2EB7#8B2EB7

#8B2EB7 is a mid, highly saturated purple. Relative luminance 0.109; OKLCH L 50.4% C 0.208 H 312.2°. Best body text is #FFFFFF at 6.62:1 contrast (WCAG AA passes).

Color values

HEX#8B2EB7
RGBrgb(139, 46, 183)
HSLhsl(281, 60%, 45%)
HSVhsv(281, 75%, 72%)
CMYKcmyk(24%, 74.9%, 0%, 28.2%)
CIE-LABlab(39.35, 59.67, -54.45)
CIE-LCHlch(39.35, 80.78, 317.62°)
OKLaboklab(50.38% 0.1396 -0.154)
OKLCHoklch(50.38% 0.208 312.2)
XYZxyz(20.1701, 10.8624, 45.8247)
Luminance0.1086 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B2EB7 #5AB72E
analogous
#472EB7 #8B2EB7 #B72E9E
triadic
#8B2EB7 #B78B2E #2EB78B
tetradic
#8B2EB7 #B7472E #5AB72E #2E9EB7
square
#8B2EB7 #B7472E #5AB72E #2E9EB7
split-complementary
#8B2EB7 #9EB72E #2EB747
monochromatic
#411555 #662286 #8B2EB7 #A94FD3 #C180DF

Accessibility & contrast

On white

6.62
#8B2EB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#8B2EB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8B2EB7
6.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B2EB7#FFFFFF#000000##FFFFFF
##8B2EB71.006.623.176.62
#FFFFFF6.621.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058BB
Deuteranopia (green-blind)
#1A5EB4
Tritanopia (blue-blind)
#864D71
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #8b2eb7;
/* rgb */ color: rgb(139, 46, 183);
/* oklch */ color: oklch(50.4% 0.208 312.2);
Tailwind
colors: {
  custom: {
    50: '#b170cd',
    500: '#8b2eb7',
    950: '#000000',
  },
}
SCSS
$custom: #8b2eb7;
$custom-light: #b170cd;
$custom-dark: #000000;
JSON
{
  "hex": "#8b2eb7",
  "rgb": {
    "r": 139,
    "g": 46,
    "b": 183
  },
  "hsl": {
    "h": 280.73,
    "s": 59.825,
    "l": 44.902
  },
  "oklch": {
    "l": 0.50379,
    "c": 0.2079,
    "h": 312.2
  },
  "luminance": 0.10862
}

Semantic roles & 50–950 ramp

primary
#8B2EB7
secondary
#92C879
accent
#E34578
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110814
muted
#807B82

Preview Lab

Preview with #8B2EB7

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

Preview Lab → · Contrast checker → · Palette generator →

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