#8B2EC2#8B2EC2

#8B2EC2 is a mid, highly saturated violet. Relative luminance 0.113; OKLCH L 51.2% C 0.218 H 309.1°. Best body text is #FFFFFF at 6.43:1 contrast (WCAG AA passes).

Color values

HEX#8B2EC2
RGBrgb(139, 46, 194)
HSLhsl(278, 62%, 47%)
HSVhsv(278, 76%, 76%)
CMYKcmyk(28.4%, 76.3%, 0%, 23.9%)
CIE-LABlab(40.14, 61.99, -59.62)
CIE-LCHlch(40.14, 86.01, 316.11°)
OKLaboklab(51.19% 0.1376 -0.1692)
OKLCHoklch(51.19% 0.218 309.1)
XYZxyz(21.3601, 11.3384, 52.0918)
Luminance0.1134 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B2EC2 #65C22E
analogous
#412EC2 #8B2EC2 #C22EAF
triadic
#8B2EC2 #C28B2E #2EC28B
tetradic
#8B2EC2 #C2412E #65C22E #2EAFC2
square
#8B2EC2 #C2412E #65C22E #2EAFC2
split-complementary
#8B2EC2 #AFC22E #2EC241
monochromatic
#44175F #682291 #8B2EC2 #A756D7 #C188E3

Accessibility & contrast

On white

6.43
#8B2EC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#8B2EC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8B2EC2
6.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B2EC2#FFFFFF#000000##FFFFFF
##8B2EC21.006.433.276.43
#FFFFFF6.431.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BC6
Deuteranopia (green-blind)
#0060BF
Tritanopia (blue-blind)
#835277
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #8b2ec2;
/* rgb */ color: rgb(139, 46, 194);
/* oklch */ color: oklch(51.2% 0.218 309.1);
Tailwind
colors: {
  custom: {
    50: '#b271d5',
    500: '#8b2ec2',
    950: '#000000',
  },
}
SCSS
$custom: #8b2ec2;
$custom-light: #b271d5;
$custom-dark: #000000;
JSON
{
  "hex": "#8b2ec2",
  "rgb": {
    "r": 139,
    "g": 46,
    "b": 194
  },
  "hsl": {
    "h": 277.703,
    "s": 61.667,
    "l": 47.059
  },
  "oklch": {
    "l": 0.51192,
    "c": 0.21812,
    "h": 309.1
  },
  "luminance": 0.11338
}

Semantic roles & 50–950 ramp

primary
#8B2EC2
secondary
#9CCC7F
accent
#E5437F
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110814
muted
#807B83

Preview Lab

Preview with #8B2EC2

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

Preview Lab → · Contrast checker → · Palette generator →

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