#8B2EA2#8B2EA2

#8B2EA2 is a mid, vivid purple. Relative luminance 0.101; OKLCH L 48.9% C 0.189 H 318.9°. Best body text is #FFFFFF at 6.98:1 contrast (WCAG AA passes).

Color values

HEX#8B2EA2
RGBrgb(139, 46, 162)
HSLhsl(288, 56%, 41%)
HSVhsv(288, 72%, 64%)
CMYKcmyk(14.2%, 71.6%, 0%, 36.5%)
CIE-LABlab(37.94, 55.42, -44.22)
CIE-LCHlch(37.94, 70.90, 321.41°)
OKLaboklab(48.93% 0.1421 -0.124)
OKLCHoklch(48.93% 0.189 318.9)
XYZxyz(18.1452, 10.0524, 35.1599)
Luminance0.1005 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B2EA2 #45A22E
analogous
#512EA2 #8B2EA2 #A22E7F
triadic
#8B2EA2 #A28B2E #2EA28B
tetradic
#8B2EA2 #A2512E #45A22E #2E7FA2
square
#8B2EA2 #A2512E #45A22E #2E7FA2
split-complementary
#8B2EA2 #7FA22E #2EA251
monochromatic
#391343 #622072 #8B2EA2 #AF43CA #C373D7

Accessibility & contrast

On white

6.98
#8B2EA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#8B2EA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8B2EA2
6.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B2EA2#FFFFFF#000000##FFFFFF
##8B2EA21.006.983.016.98
#FFFFFF6.981.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053A5
Deuteranopia (green-blind)
#355C9F
Tritanopia (blue-blind)
#8B4465
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #8b2ea2;
/* rgb */ color: rgb(139, 46, 162);
/* oklch */ color: oklch(48.9% 0.189 318.9);
Tailwind
colors: {
  custom: {
    50: '#b06fbe',
    500: '#8b2ea2',
    950: '#000000',
  },
}
SCSS
$custom: #8b2ea2;
$custom-light: #b06fbe;
$custom-dark: #000000;
JSON
{
  "hex": "#8b2ea2",
  "rgb": {
    "r": 139,
    "g": 46,
    "b": 162
  },
  "hsl": {
    "h": 288.103,
    "s": 55.769,
    "l": 40.784
  },
  "oklch": {
    "l": 0.48927,
    "c": 0.18861,
    "h": 318.9
  },
  "luminance": 0.10052
}

Semantic roles & 50–950 ramp

primary
#8B2EA2
secondary
#7DBF6D
accent
#DF4967
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8B2EA2

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

Preview Lab → · Contrast checker → · Palette generator →

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