#8B3EB2#8B3EB2

#8B3EB2 is a mid, vivid violet. Relative luminance 0.121; OKLCH L 51.8% C 0.183 H 312.3°. Best body text is #FFFFFF at 6.12:1 contrast (WCAG AA passes).

Color values

HEX#8B3EB2
RGBrgb(139, 62, 178)
HSLhsl(280, 48%, 47%)
HSVhsv(280, 65%, 70%)
CMYKcmyk(21.9%, 65.2%, 0%, 30.2%)
CIE-LABlab(41.45, 51.75, -48.11)
CIE-LCHlch(41.45, 70.66, 317.09°)
OKLaboklab(51.78% 0.1233 -0.1355)
OKLCHoklch(51.78% 0.183 312.3)
XYZxyz(20.4045, 12.1491, 43.3810)
Luminance0.1215 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B3EB2 #65B23E
analogous
#513EB2 #8B3EB2 #B23E9F
triadic
#8B3EB2 #B28B3E #3EB28B
tetradic
#8B3EB2 #B2513E #65B23E #3E9FB2
square
#8B3EB2 #B2513E #65B23E #3E9FB2
split-complementary
#8B3EB2 #9FB23E #3EB251
monochromatic
#441E57 #682E85 #8B3EB2 #A764C9 #C192D9

Accessibility & contrast

On white

6.12
#8B3EB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#8B3EB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8B3EB2
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B3EB2#FFFFFF#000000##FFFFFF
##8B3EB21.006.123.436.12
#FFFFFF6.121.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EB6
Deuteranopia (green-blind)
#3463AF
Tritanopia (blue-blind)
#875572
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #8b3eb2;
/* rgb */ color: rgb(139, 62, 178);
/* oklch */ color: oklch(51.8% 0.183 312.3);
Tailwind
colors: {
  custom: {
    50: '#b078ca',
    500: '#8b3eb2',
    950: '#000000',
  },
}
SCSS
$custom: #8b3eb2;
$custom-light: #b078ca;
$custom-dark: #000000;
JSON
{
  "hex": "#8b3eb2",
  "rgb": {
    "r": 139,
    "g": 62,
    "b": 178
  },
  "hsl": {
    "h": 279.828,
    "s": 48.333,
    "l": 47.059
  },
  "oklch": {
    "l": 0.51775,
    "c": 0.18319,
    "h": 312.3
  },
  "luminance": 0.12149
}

Semantic roles & 50–950 ramp

primary
#8B3EB2
secondary
#9CC488
accent
#D8507E
background
#FBF7FC
surface
#F6EEF8
border
#D0C9D1
text
#110913
muted
#807B82

Preview Lab

Preview with #8B3EB2

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

Preview Lab → · Contrast checker → · Palette generator →

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