#8B2EE1#8B2EE1

#8B2EE1 is a mid, highly saturated violet. Relative luminance 0.129; OKLCH L 53.7% C 0.247 H 301.7°. Best body text is #FFFFFF at 5.87:1 contrast (WCAG AA passes).

Color values

HEX#8B2EE1
RGBrgb(139, 46, 225)
HSLhsl(271, 75%, 53%)
HSVhsv(271, 80%, 88%)
CMYKcmyk(38.2%, 79.6%, 0%, 11.8%)
CIE-LABlab(42.58, 68.76, -73.55)
CIE-LCHlch(42.58, 100.68, 313.07°)
OKLaboklab(53.65% 0.13 -0.2101)
OKLCHoklch(53.65% 0.247 301.7)
XYZxyz(25.2117, 12.8791, 72.3772)
Luminance0.1288 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B2EE1 #84E12E
analogous
#312EE1 #8B2EE1 #E12EDD
triadic
#8B2EE1 #E18B2E #2EE18B
tetradic
#8B2EE1 #E1312E #84E12E #2EDDE1
square
#8B2EE1 #E1312E #84E12E #2EDDE1
split-complementary
#8B2EE1 #DDE12E #2EE131
monochromatic
#4C1382 #6C1AB7 #8B2EE1 #A964E9 #C699F0

Accessibility & contrast

On white

5.87
#8B2EE1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#8B2EE1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8B2EE1
5.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B2EE1#FFFFFF#000000##FFFFFF
##8B2EE11.005.873.585.87
#FFFFFF5.871.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063E6
Deuteranopia (green-blind)
#0064DE
Tritanopia (blue-blind)
#786089
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #8b2ee1;
/* rgb */ color: rgb(139, 46, 225);
/* oklch */ color: oklch(53.7% 0.247 301.7);
Tailwind
colors: {
  custom: {
    50: '#b472ec',
    500: '#8b2ee1',
    950: '#000000',
  },
}
SCSS
$custom: #8b2ee1;
$custom-light: #b472ec;
$custom-dark: #000000;
JSON
{
  "hex": "#8b2ee1",
  "rgb": {
    "r": 139,
    "g": 46,
    "b": 225
  },
  "hsl": {
    "h": 271.173,
    "s": 74.895,
    "l": 53.137
  },
  "oklch": {
    "l": 0.53651,
    "c": 0.24707,
    "h": 301.7
  },
  "luminance": 0.12879
}

Semantic roles & 50–950 ramp

primary
#8B2EE1
secondary
#B4DC8F
accent
#F23690
background
#FBF7FE
surface
#F7EDFD
border
#D0C8D5
text
#120916
muted
#817B84

Preview Lab

Preview with #8B2EE1

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

Preview Lab → · Contrast checker → · Palette generator →

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