#8B2EA8#8B2EA8

#8B2EA8 is a mid, vivid purple. Relative luminance 0.103; OKLCH L 49.3% C 0.194 H 316.9°. Best body text is #FFFFFF at 6.88:1 contrast (WCAG AA passes).

Color values

HEX#8B2EA8
RGBrgb(139, 46, 168)
HSLhsl(286, 57%, 42%)
HSVhsv(286, 73%, 66%)
CMYKcmyk(17.3%, 72.6%, 0%, 34.1%)
CIE-LABlab(38.32, 56.61, -47.19)
CIE-LCHlch(38.32, 73.70, 320.18°)
OKLaboklab(49.33% 0.1416 -0.1327)
OKLCHoklch(49.33% 0.194 316.9)
XYZxyz(18.6913, 10.2709, 38.0361)
Luminance0.1027 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B2EA8 #4BA82E
analogous
#4E2EA8 #8B2EA8 #A82E88
triadic
#8B2EA8 #A88B2E #2EA88B
tetradic
#8B2EA8 #A84E2E #4BA82E #2E88A8
square
#8B2EA8 #A84E2E #4BA82E #2E88A8
split-complementary
#8B2EA8 #88A82E #2EA84E
monochromatic
#3B1448 #632178 #8B2EA8 #AD47CD #C277DA

Accessibility & contrast

On white

6.88
#8B2EA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#8B2EA8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8B2EA8
6.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B2EA8#FFFFFF#000000##FFFFFF
##8B2EA81.006.883.056.88
#FFFFFF6.881.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055AB
Deuteranopia (green-blind)
#305DA5
Tritanopia (blue-blind)
#894768
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #8b2ea8;
/* rgb */ color: rgb(139, 46, 168);
/* oklch */ color: oklch(49.3% 0.194 316.9);
Tailwind
colors: {
  custom: {
    50: '#b170c2',
    500: '#8b2ea8',
    950: '#000000',
  },
}
SCSS
$custom: #8b2ea8;
$custom-light: #b170c2;
$custom-dark: #000000;
JSON
{
  "hex": "#8b2ea8",
  "rgb": {
    "r": 139,
    "g": 46,
    "b": 168
  },
  "hsl": {
    "h": 285.738,
    "s": 57.009,
    "l": 41.961
  },
  "oklch": {
    "l": 0.49328,
    "c": 0.19408,
    "h": 316.9
  },
  "luminance": 0.1027
}

Semantic roles & 50–950 ramp

primary
#8B2EA8
secondary
#84C270
accent
#E0486C
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110812
muted
#807B81

Preview Lab

Preview with #8B2EA8

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

Preview Lab → · Contrast checker → · Palette generator →

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