#8B2ED5#8B2ED5

#8B2ED5 is a mid, highly saturated violet. Relative luminance 0.122; OKLCH L 52.7% C 0.236 H 304.4°. Best body text is #FFFFFF at 6.09:1 contrast (WCAG AA passes).

Color values

HEX#8B2ED5
RGBrgb(139, 46, 213)
HSLhsl(273, 67%, 51%)
HSVhsv(273, 78%, 84%)
CMYKcmyk(34.7%, 78.4%, 0%, 16.5%)
CIE-LABlab(41.61, 66.10, -68.26)
CIE-LCHlch(41.61, 95.02, 314.08°)
OKLaboklab(52.67% 0.1332 -0.1946)
OKLCHoklch(52.67% 0.236 304.4)
XYZxyz(23.6319, 12.2471, 64.0568)
Luminance0.1225 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B2ED5 #78D52E
analogous
#372ED5 #8B2ED5 #D52ECC
triadic
#8B2ED5 #D58B2E #2ED58B
tetradic
#8B2ED5 #D5372E #78D52E #2ECCD5
square
#8B2ED5 #D5372E #78D52E #2ECCD5
split-complementary
#8B2ED5 #CCD52E #2ED537
monochromatic
#491772 #6A21A5 #8B2ED5 #A761DF #C494E9

Accessibility & contrast

On white

6.09
#8B2ED5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#8B2ED5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8B2ED5
6.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B2ED5#FFFFFF#000000##FFFFFF
##8B2ED51.006.093.456.09
#FFFFFF6.091.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060DA
Deuteranopia (green-blind)
#0062D2
Tritanopia (blue-blind)
#7C5A82
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #8b2ed5;
/* rgb */ color: rgb(139, 46, 213);
/* oklch */ color: oklch(52.7% 0.236 304.4);
Tailwind
colors: {
  custom: {
    50: '#b372e3',
    500: '#8b2ed5',
    950: '#000000',
  },
}
SCSS
$custom: #8b2ed5;
$custom-light: #b372e3;
$custom-dark: #000000;
JSON
{
  "hex": "#8b2ed5",
  "rgb": {
    "r": 139,
    "g": 46,
    "b": 213
  },
  "hsl": {
    "h": 273.413,
    "s": 66.534,
    "l": 50.784
  },
  "oklch": {
    "l": 0.52672,
    "c": 0.23585,
    "h": 304.4
  },
  "luminance": 0.12247
}

Semantic roles & 50–950 ramp

primary
#8B2ED5
secondary
#ABD48A
accent
#E93E8A
background
#FBF7FE
surface
#F6EDFC
border
#D0C8D5
text
#120916
muted
#817B84

Preview Lab

Preview with #8B2ED5

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

Preview Lab → · Contrast checker → · Palette generator →

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