#8B56E7#8B56E7

#8B56E7 is a mid, highly saturated violet. Relative luminance 0.179; OKLCH L 58.6% C 0.209 H 296.1°. Best body text is #000000 at 4.58:1 contrast (WCAG AA passes).

Color values

HEX#8B56E7
RGBrgb(139, 86, 231)
HSLhsl(262, 75%, 62%)
HSVhsv(262, 63%, 91%)
CMYKcmyk(39.8%, 62.8%, 0%, 9.4%)
CIE-LABlab(49.39, 52.39, -65.86)
CIE-LCHlch(49.39, 84.16, 308.50°)
OKLaboklab(58.63% 0.0922 -0.1877)
OKLCHoklch(58.63% 0.209 296.1)
XYZxyz(28.3953, 17.9135, 77.5474)
Luminance0.1791 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B56E7 #B2E756
analogous
#566AE7 #8B56E7 #D456E7
triadic
#8B56E7 #E78B56 #56E78B
tetradic
#8B56E7 #E7566A #B2E756 #56E7D4
square
#8B56E7 #E7566A #B2E756 #56E7D4
split-complementary
#8B56E7 #E7D456 #6AE756
monochromatic
#4E18AA #6620DF #8B56E7 #B08CEF #D5C1F6

Accessibility & contrast

On white

4.58
#8B56E7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.58
#8B56E7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8B56E7
4.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B56E7#FFFFFF#000000##000000
##8B56E71.004.584.584.58
#FFFFFF4.581.0021.0021.00
#0000004.5821.001.001.00
##0000004.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#0076EC
Deuteranopia (green-blind)
#0073E4
Tritanopia (blue-blind)
#747797
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #8b56e7;
/* rgb */ color: rgb(139, 86, 231);
/* oklch */ color: oklch(58.6% 0.209 296.1);
Tailwind
colors: {
  custom: {
    50: '#b388ef',
    500: '#8b56e7',
    950: '#000000',
  },
}
SCSS
$custom: #8b56e7;
$custom-light: #b388ef;
$custom-dark: #000000;
JSON
{
  "hex": "#8b56e7",
  "rgb": {
    "r": 139,
    "g": 86,
    "b": 231
  },
  "hsl": {
    "h": 261.931,
    "s": 75.13,
    "l": 62.157
  },
  "oklch": {
    "l": 0.5863,
    "c": 0.20915,
    "h": 296.1
  },
  "luminance": 0.17914
}

Semantic roles & 50–950 ramp

primary
#8B56E7
secondary
#D4E7B2
accent
#D70E8E
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#120C17
muted
#817D85

Preview Lab

Preview with #8B56E7

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

Preview Lab → · Contrast checker → · Palette generator →

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