#8B2ED7#8B2ED7

#8B2ED7 is a mid, highly saturated violet. Relative luminance 0.123; OKLCH L 52.8% C 0.238 H 303.9°. Best body text is #FFFFFF at 6.05:1 contrast (WCAG AA passes).

Color values

HEX#8B2ED7
RGBrgb(139, 46, 215)
HSLhsl(273, 68%, 51%)
HSVhsv(273, 79%, 84%)
CMYKcmyk(35.3%, 78.6%, 0%, 15.7%)
CIE-LABlab(41.77, 66.54, -69.15)
CIE-LCHlch(41.77, 95.97, 313.90°)
OKLaboklab(52.83% 0.1327 -0.1972)
OKLCHoklch(52.83% 0.238 303.9)
XYZxyz(23.8873, 12.3493, 65.4020)
Luminance0.1235 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B2ED7 #7AD72E
analogous
#362ED7 #8B2ED7 #D72ECE
triadic
#8B2ED7 #D78B2E #2ED78B
tetradic
#8B2ED7 #D7362E #7AD72E #2ECED7
square
#8B2ED7 #D7362E #7AD72E #2ECED7
split-complementary
#8B2ED7 #CED72E #2ED736
monochromatic
#4A1674 #6B20A8 #8B2ED7 #A861E1 #C495EB

Accessibility & contrast

On white

6.05
#8B2ED7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#8B2ED7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8B2ED7
6.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B2ED7#FFFFFF#000000##FFFFFF
##8B2ED71.006.053.476.05
#FFFFFF6.051.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061DC
Deuteranopia (green-blind)
#0062D4
Tritanopia (blue-blind)
#7C5B83
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #8b2ed7;
/* rgb */ color: rgb(139, 46, 215);
/* oklch */ color: oklch(52.8% 0.238 303.9);
Tailwind
colors: {
  custom: {
    50: '#b472e4',
    500: '#8b2ed7',
    950: '#000000',
  },
}
SCSS
$custom: #8b2ed7;
$custom-light: #b472e4;
$custom-dark: #000000;
JSON
{
  "hex": "#8b2ed7",
  "rgb": {
    "r": 139,
    "g": 46,
    "b": 215
  },
  "hsl": {
    "h": 273.018,
    "s": 67.871,
    "l": 51.176
  },
  "oklch": {
    "l": 0.52833,
    "c": 0.23772,
    "h": 303.9
  },
  "luminance": 0.12349
}

Semantic roles & 50–950 ramp

primary
#8B2ED7
secondary
#ADD68B
accent
#EB3D8B
background
#FBF7FE
surface
#F6EDFC
border
#D0C8D5
text
#120916
muted
#817B84

Preview Lab

Preview with #8B2ED7

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

Preview Lab → · Contrast checker → · Palette generator →

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