#8B59B2#8B59B2

#8B59B2 is a mid, vivid violet. Relative luminance 0.158; OKLCH L 55.7% C 0.141 H 308.4°. Best body text is #FFFFFF at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#8B59B2
RGBrgb(139, 89, 178)
HSLhsl(274, 37%, 52%)
HSVhsv(274, 50%, 70%)
CMYKcmyk(21.9%, 50%, 0%, 30.2%)
CIE-LABlab(46.77, 37.59, -39.63)
CIE-LCHlch(46.77, 54.62, 313.49°)
OKLaboklab(55.67% 0.0879 -0.1108)
OKLCHoklch(55.67% 0.141 308.4)
XYZxyz(22.2542, 15.8484, 43.9975)
Luminance0.1585 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B59B2 #80B259
analogous
#5E59B2 #8B59B2 #B259AD
triadic
#8B59B2 #B28B59 #59B28B
tetradic
#8B59B2 #B25E59 #80B259 #59ADB2
square
#8B59B2 #B25E59 #80B259 #59ADB2
split-complementary
#8B59B2 #ADB259 #59B25E
monochromatic
#4C2E63 #6C418D #8B59B2 #A883C5 #C5ADD9

Accessibility & contrast

On white

5.04
#8B59B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#8B59B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8B59B2
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B59B2#FFFFFF#000000##FFFFFF
##8B59B21.005.044.175.04
#FFFFFF5.041.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#416DB5
Deuteranopia (green-blind)
#5070B0
Tritanopia (blue-blind)
#86687D
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #8b59b2;
/* rgb */ color: rgb(139, 89, 178);
/* oklch */ color: oklch(55.7% 0.141 308.4);
Tailwind
colors: {
  custom: {
    50: '#af89c9',
    500: '#8b59b2',
    950: '#000000',
  },
}
SCSS
$custom: #8b59b2;
$custom-light: #af89c9;
$custom-dark: #000000;
JSON
{
  "hex": "#8b59b2",
  "rgb": {
    "r": 139,
    "g": 89,
    "b": 178
  },
  "hsl": {
    "h": 273.708,
    "s": 36.626,
    "l": 52.353
  },
  "oklch": {
    "l": 0.55673,
    "c": 0.14146,
    "h": 308.4
  },
  "luminance": 0.15848
}

Semantic roles & 50–950 ramp

primary
#8B59B2
secondary
#B1C7A0
accent
#CD5B8D
background
#FAF8FC
surface
#F5F0F8
border
#CFCBD1
text
#110C13
muted
#807D82

Preview Lab

Preview with #8B59B2

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

Preview Lab → · Contrast checker → · Palette generator →

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