#8B3ED4#8B3ED4

#8B3ED4 is a mid, highly saturated violet. Relative luminance 0.137; OKLCH L 54.2% C 0.218 H 303.2°. Best body text is #FFFFFF at 5.62:1 contrast (WCAG AA passes).

Color values

HEX#8B3ED4
RGBrgb(139, 62, 212)
HSLhsl(271, 64%, 54%)
HSVhsv(271, 71%, 83%)
CMYKcmyk(34.4%, 70.8%, 0%, 16.9%)
CIE-LABlab(43.78, 59.45, -64.15)
CIE-LCHlch(43.78, 87.46, 312.82°)
OKLaboklab(54.18% 0.1195 -0.1826)
OKLCHoklch(54.18% 0.218 303.2)
XYZxyz(24.2510, 13.6877, 63.6390)
Luminance0.1369 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B3ED4 #87D43E
analogous
#403ED4 #8B3ED4 #D43ED2
triadic
#8B3ED4 #D48B3E #3ED48B
tetradic
#8B3ED4 #D4403E #87D43E #3ED2D4
square
#8B3ED4 #D4403E #87D43E #3ED2D4
split-complementary
#8B3ED4 #D2D43E #3ED440
monochromatic
#4D1C7C #6C27AE #8B3ED4 #A970DF #C7A2EA

Accessibility & contrast

On white

5.62
#8B3ED4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.74
#8B3ED4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8B3ED4
5.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B3ED4#FFFFFF#000000##FFFFFF
##8B3ED41.005.623.745.62
#FFFFFF5.621.0021.001.00
#0000003.7421.001.0021.00
##FFFFFF5.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066D8
Deuteranopia (green-blind)
#0067D1
Tritanopia (blue-blind)
#7C6285
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #8b3ed4;
/* rgb */ color: rgb(139, 62, 212);
/* oklch */ color: oklch(54.2% 0.218 303.2);
Tailwind
colors: {
  custom: {
    50: '#b37ae2',
    500: '#8b3ed4',
    950: '#000000',
  },
}
SCSS
$custom: #8b3ed4;
$custom-light: #b37ae2;
$custom-dark: #000000;
JSON
{
  "hex": "#8b3ed4",
  "rgb": {
    "r": 139,
    "g": 62,
    "b": 212
  },
  "hsl": {
    "h": 270.8,
    "s": 63.559,
    "l": 53.725
  },
  "oklch": {
    "l": 0.5418,
    "c": 0.21821,
    "h": 303.2
  },
  "luminance": 0.13688
}

Semantic roles & 50–950 ramp

primary
#8B3ED4
secondary
#B6D797
accent
#E74192
background
#FBF7FE
surface
#F6EEFC
border
#D0C9D5
text
#120A15
muted
#817C84

Preview Lab

Preview with #8B3ED4

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

Preview Lab → · Contrast checker → · Palette generator →

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