#8B2EC4#8B2EC4

#8B2EC4 is a mid, highly saturated violet. Relative luminance 0.114; OKLCH L 51.3% C 0.220 H 308.6°. Best body text is #FFFFFF at 6.39:1 contrast (WCAG AA passes).

Color values

HEX#8B2EC4
RGBrgb(139, 46, 196)
HSLhsl(277, 62%, 47%)
HSVhsv(277, 77%, 77%)
CMYKcmyk(29.1%, 76.5%, 0%, 23.1%)
CIE-LABlab(40.29, 62.41, -60.55)
CIE-LCHlch(40.29, 86.96, 315.87°)
OKLaboklab(51.34% 0.1372 -0.1719)
OKLCHoklch(51.34% 0.22 308.6)
XYZxyz(21.5862, 11.4289, 53.2827)
Luminance0.1143 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B2EC4 #67C42E
analogous
#402EC4 #8B2EC4 #C42EB2
triadic
#8B2EC4 #C48B2E #2EC48B
tetradic
#8B2EC4 #C4402E #67C42E #2EB2C4
square
#8B2EC4 #C4402E #67C42E #2EB2C4
split-complementary
#8B2EC4 #B2C42E #2EC440
monochromatic
#451761 #682292 #8B2EC4 #A758D8 #C189E3

Accessibility & contrast

On white

6.39
#8B2EC4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #8B2EC4
6.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B2EC4#FFFFFF#000000##FFFFFF
##8B2EC41.006.393.296.39
#FFFFFF6.391.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BC8
Deuteranopia (green-blind)
#0060C1
Tritanopia (blue-blind)
#825378
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #8b2ec4;
/* rgb */ color: rgb(139, 46, 196);
/* oklch */ color: oklch(51.3% 0.220 308.6);
Tailwind
colors: {
  custom: {
    50: '#b271d7',
    500: '#8b2ec4',
    950: '#000000',
  },
}
SCSS
$custom: #8b2ec4;
$custom-light: #b271d7;
$custom-dark: #000000;
JSON
{
  "hex": "#8b2ec4",
  "rgb": {
    "r": 139,
    "g": 46,
    "b": 196
  },
  "hsl": {
    "h": 277.2,
    "s": 61.983,
    "l": 47.451
  },
  "oklch": {
    "l": 0.51343,
    "c": 0.21998,
    "h": 308.6
  },
  "luminance": 0.11428
}

Semantic roles & 50–950 ramp

primary
#8B2EC4
secondary
#9ECD81
accent
#E54380
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#120814
muted
#817B83

Preview Lab

Preview with #8B2EC4

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

Preview Lab → · Contrast checker → · Palette generator →

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