#8B4EE2#8B4EE2

#8B4EE2 is a mid, highly saturated violet. Relative luminance 0.164; OKLCH L 57.2% C 0.214 H 298.3°. Best body text is #FFFFFF at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#8B4EE2
RGBrgb(139, 78, 226)
HSLhsl(265, 72%, 60%)
HSVhsv(265, 65%, 89%)
CMYKcmyk(38.5%, 65.5%, 0%, 11.4%)
CIE-LABlab(47.53, 55.23, -66.05)
CIE-LCHlch(47.53, 86.10, 309.90°)
OKLaboklab(57.18% 0.1012 -0.1883)
OKLCHoklch(57.18% 0.214 298.3)
XYZxyz(27.0958, 16.4283, 73.6802)
Luminance0.1643 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B4EE2 #A5E24E
analogous
#4E5BE2 #8B4EE2 #D54EE2
triadic
#8B4EE2 #E28B4E #4EE28B
tetradic
#8B4EE2 #E24E5B #A5E24E #4EE2D5
square
#8B4EE2 #E24E5B #A5E24E #4EE2D5
split-complementary
#8B4EE2 #E2D54E #5BE24E
monochromatic
#4F1A9C #6A22D1 #8B4EE2 #AD83EB #D0B7F3

Accessibility & contrast

On white

4.90
#8B4EE2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.29
#8B4EE2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8B4EE2
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B4EE2#FFFFFF#000000##FFFFFF
##8B4EE21.004.904.294.90
#FFFFFF4.901.0021.001.00
#0000004.2921.001.0021.00
##FFFFFF4.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071E7
Deuteranopia (green-blind)
#006FDF
Tritanopia (blue-blind)
#767091
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #8b4ee2;
/* rgb */ color: rgb(139, 78, 226);
/* oklch */ color: oklch(57.2% 0.214 298.3);
Tailwind
colors: {
  custom: {
    50: '#b383ec',
    500: '#8b4ee2',
    950: '#000000',
  },
}
SCSS
$custom: #8b4ee2;
$custom-light: #b383ec;
$custom-dark: #000000;
JSON
{
  "hex": "#8b4ee2",
  "rgb": {
    "r": 139,
    "g": 78,
    "b": 226
  },
  "hsl": {
    "h": 264.73,
    "s": 71.845,
    "l": 59.608
  },
  "oklch": {
    "l": 0.57178,
    "c": 0.21375,
    "h": 298.3
  },
  "luminance": 0.16429
}

Semantic roles & 50–950 ramp

primary
#8B4EE2
secondary
#CBE3A9
accent
#EF39A4
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#120B16
muted
#817C84

Preview Lab

Preview with #8B4EE2

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

Preview Lab → · Contrast checker → · Palette generator →

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