#56159E#56159E

#56159E is a dark, vivid violet. Relative luminance 0.050; OKLCH L 39.3% C 0.195 H 297.4°. Best body text is #FFFFFF at 10.52:1 contrast (WCAG AA passes).

Color values

HEX#56159E
RGBrgb(86, 21, 158)
HSLhsl(268, 77%, 35%)
HSVhsv(268, 87%, 62%)
CMYKcmyk(45.6%, 86.7%, 0%, 38%)
CIE-LABlab(26.69, 54.20, -60.42)
CIE-LCHlch(26.69, 81.17, 311.89°)
OKLaboklab(39.32% 0.0898 -0.1732)
OKLCHoklch(39.32% 0.195 297.4)
XYZxyz(10.2758, 4.9832, 32.7616)
Luminance0.0498 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56159E #5D9E15
analogous
#15199E #56159E #9A159E
triadic
#56159E #9E5615 #159E56
tetradic
#56159E #9E1519 #5D9E15 #159E9A
square
#56159E #9E1519 #5D9E15 #159E9A
split-complementary
#56159E #9E9A15 #199E15
monochromatic
#1B0732 #390E68 #56159E #731CD4 #9347E7

Accessibility & contrast

On white

10.52
#56159E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#56159E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #56159E
10.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56159E#FFFFFF#000000##FFFFFF
##56159E1.0010.522.0010.52
#FFFFFF10.521.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003FA2
Deuteranopia (green-blind)
#003D9C
Tritanopia (blue-blind)
#423F5D
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #56159e;
/* rgb */ color: rgb(86, 21, 158);
/* oklch */ color: oklch(39.3% 0.195 297.4);
Tailwind
colors: {
  custom: {
    50: '#8e5ebc',
    500: '#56159e',
    950: '#000000',
  },
}
SCSS
$custom: #56159e;
$custom-light: #8e5ebc;
$custom-dark: #000000;
JSON
{
  "hex": "#56159e",
  "rgb": {
    "r": 86,
    "g": 21,
    "b": 158
  },
  "hsl": {
    "h": 268.467,
    "s": 76.536,
    "l": 35.098
  },
  "oklch": {
    "l": 0.39323,
    "c": 0.19506,
    "h": 297.4
  },
  "luminance": 0.04983
}

Semantic roles & 50–950 ramp

primary
#56159E
secondary
#8BC747
accent
#F33599
background
#F9F5FB
surface
#F1EAF6
border
#CBC6D0
text
#0D0512
muted
#7E7981

Preview Lab

Preview with #56159E

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

Preview Lab → · Contrast checker → · Palette generator →

#56159E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva