#8B2EB2#8B2EB2

#8B2EB2 is a mid, highly saturated purple. Relative luminance 0.107; OKLCH L 50.0% C 0.203 H 313.7°. Best body text is #FFFFFF at 6.71:1 contrast (WCAG AA passes).

Color values

HEX#8B2EB2
RGBrgb(139, 46, 178)
HSLhsl(282, 59%, 44%)
HSVhsv(282, 74%, 70%)
CMYKcmyk(21.9%, 74.2%, 0%, 30.2%)
CIE-LABlab(39.00, 58.63, -52.06)
CIE-LCHlch(39.00, 78.41, 318.40°)
OKLaboklab(50.02% 0.1404 -0.147)
OKLCHoklch(50.02% 0.203 313.7)
XYZxyz(19.6589, 10.6579, 43.1325)
Luminance0.1066 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B2EB2 #55B22E
analogous
#492EB2 #8B2EB2 #B22E97
triadic
#8B2EB2 #B28B2E #2EB28B
tetradic
#8B2EB2 #B2492E #55B22E #2E97B2
square
#8B2EB2 #B2492E #55B22E #2E97B2
split-complementary
#8B2EB2 #97B22E #2EB249
monochromatic
#3F1551 #652181 #8B2EB2 #AA4CD1 #C17DDD

Accessibility & contrast

On white

6.71
#8B2EB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#8B2EB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8B2EB2
6.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B2EB2#FFFFFF#000000##FFFFFF
##8B2EB21.006.713.136.71
#FFFFFF6.711.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057B6
Deuteranopia (green-blind)
#235EAF
Tritanopia (blue-blind)
#874B6E
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #8b2eb2;
/* rgb */ color: rgb(139, 46, 178);
/* oklch */ color: oklch(50.0% 0.203 313.7);
Tailwind
colors: {
  custom: {
    50: '#b170ca',
    500: '#8b2eb2',
    950: '#000000',
  },
}
SCSS
$custom: #8b2eb2;
$custom-light: #b170ca;
$custom-dark: #000000;
JSON
{
  "hex": "#8b2eb2",
  "rgb": {
    "r": 139,
    "g": 46,
    "b": 178
  },
  "hsl": {
    "h": 282.273,
    "s": 58.929,
    "l": 43.922
  },
  "oklch": {
    "l": 0.50021,
    "c": 0.20328,
    "h": 313.7
  },
  "luminance": 0.10657
}

Semantic roles & 50–950 ramp

primary
#8B2EB2
secondary
#8EC676
accent
#E24674
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110813
muted
#807B82

Preview Lab

Preview with #8B2EB2

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

Preview Lab → · Contrast checker → · Palette generator →

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