#8B2EC5#8B2EC5

#8B2EC5 is a mid, highly saturated violet. Relative luminance 0.115; OKLCH L 51.4% C 0.221 H 308.3°. Best body text is #FFFFFF at 6.37:1 contrast (WCAG AA passes).

Color values

HEX#8B2EC5
RGBrgb(139, 46, 197)
HSLhsl(277, 62%, 48%)
HSVhsv(277, 77%, 77%)
CMYKcmyk(29.4%, 76.6%, 0%, 22.7%)
CIE-LABlab(40.37, 62.63, -61.01)
CIE-LCHlch(40.37, 87.43, 315.75°)
OKLaboklab(51.42% 0.137 -0.1733)
OKLCHoklch(51.42% 0.221 308.3)
XYZxyz(21.7004, 11.4745, 53.8841)
Luminance0.1147 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B2EC5 #68C52E
analogous
#402EC5 #8B2EC5 #C52EB3
triadic
#8B2EC5 #C58B2E #2EC58B
tetradic
#8B2EC5 #C5402E #68C52E #2EB3C5
square
#8B2EC5 #C5402E #68C52E #2EB3C5
split-complementary
#8B2EC5 #B3C52E #2EC540
monochromatic
#451762 #682293 #8B2EC5 #A758D8 #C18AE4

Accessibility & contrast

On white

6.37
#8B2EC5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#8B2EC5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8B2EC5
6.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B2EC5#FFFFFF#000000##FFFFFF
##8B2EC51.006.373.296.37
#FFFFFF6.371.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CC9
Deuteranopia (green-blind)
#0060C2
Tritanopia (blue-blind)
#825479
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #8b2ec5;
/* rgb */ color: rgb(139, 46, 197);
/* oklch */ color: oklch(51.4% 0.221 308.3);
Tailwind
colors: {
  custom: {
    50: '#b271d7',
    500: '#8b2ec5',
    950: '#000000',
  },
}
SCSS
$custom: #8b2ec5;
$custom-light: #b271d7;
$custom-dark: #000000;
JSON
{
  "hex": "#8b2ec5",
  "rgb": {
    "r": 139,
    "g": 46,
    "b": 197
  },
  "hsl": {
    "h": 276.954,
    "s": 62.14,
    "l": 47.647
  },
  "oklch": {
    "l": 0.51419,
    "c": 0.22092,
    "h": 308.3
  },
  "luminance": 0.11474
}

Semantic roles & 50–950 ramp

primary
#8B2EC5
secondary
#9FCE81
accent
#E54381
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#120815
muted
#817B83

Preview Lab

Preview with #8B2EC5

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

Preview Lab → · Contrast checker → · Palette generator →

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