#8B2ED4#8B2ED4

#8B2ED4 is a mid, highly saturated violet. Relative luminance 0.122; OKLCH L 52.6% C 0.235 H 304.6°. Best body text is #FFFFFF at 6.11:1 contrast (WCAG AA passes).

Color values

HEX#8B2ED4
RGBrgb(139, 46, 212)
HSLhsl(274, 66%, 51%)
HSVhsv(274, 78%, 83%)
CMYKcmyk(34.4%, 78.3%, 0%, 16.9%)
CIE-LABlab(41.53, 65.88, -67.82)
CIE-LCHlch(41.53, 94.55, 314.17°)
OKLaboklab(52.59% 0.1335 -0.1933)
OKLCHoklch(52.59% 0.235 304.6)
XYZxyz(23.5054, 12.1965, 63.3904)
Luminance0.1220 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B2ED4 #77D42E
analogous
#382ED4 #8B2ED4 #D42ECA
triadic
#8B2ED4 #D48B2E #2ED48B
tetradic
#8B2ED4 #D4382E #77D42E #2ECAD4
square
#8B2ED4 #D4382E #77D42E #2ECAD4
split-complementary
#8B2ED4 #CAD42E #2ED438
monochromatic
#491770 #6A22A3 #8B2ED4 #A761DE #C394E9

Accessibility & contrast

On white

6.11
#8B2ED4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.44
#8B2ED4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8B2ED4
6.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B2ED4#FFFFFF#000000##FFFFFF
##8B2ED41.006.113.446.11
#FFFFFF6.111.0021.001.00
#0000003.4421.001.0021.00
##FFFFFF6.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060D9
Deuteranopia (green-blind)
#0062D1
Tritanopia (blue-blind)
#7D5A81
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #8b2ed4;
/* rgb */ color: rgb(139, 46, 212);
/* oklch */ color: oklch(52.6% 0.235 304.6);
Tailwind
colors: {
  custom: {
    50: '#b372e2',
    500: '#8b2ed4',
    950: '#000000',
  },
}
SCSS
$custom: #8b2ed4;
$custom-light: #b372e2;
$custom-dark: #000000;
JSON
{
  "hex": "#8b2ed4",
  "rgb": {
    "r": 139,
    "g": 46,
    "b": 212
  },
  "hsl": {
    "h": 273.614,
    "s": 65.873,
    "l": 50.588
  },
  "oklch": {
    "l": 0.52592,
    "c": 0.23492,
    "h": 304.6
  },
  "luminance": 0.12196
}

Semantic roles & 50–950 ramp

primary
#8B2ED4
secondary
#AAD48A
accent
#E93F8A
background
#FBF7FE
surface
#F6EDFC
border
#D0C8D5
text
#120916
muted
#817B84

Preview Lab

Preview with #8B2ED4

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

Preview Lab → · Contrast checker → · Palette generator →

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