#56158D#56158D

#56158D is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.7% C 0.178 H 302.6°. Best body text is #FFFFFF at 11.13:1 contrast (WCAG AA passes).

Color values

HEX#56158D
RGBrgb(86, 21, 141)
HSLhsl(273, 74%, 32%)
HSVhsv(273, 85%, 55%)
CMYKcmyk(39%, 85.1%, 0%, 44.7%)
CIE-LABlab(25.07, 50.13, -52.60)
CIE-LCHlch(25.07, 72.67, 313.62°)
OKLaboklab(37.72% 0.096 -0.1503)
OKLCHoklch(37.72% 0.178 302.6)
XYZxyz(8.9125, 4.4378, 25.5812)
Luminance0.0444 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56158D #4C8D15
analogous
#1A158D #56158D #8D1588
triadic
#56158D #8D5615 #158D56
tetradic
#56158D #8D1A15 #4C8D15 #15888D
square
#56158D #8D1A15 #4C8D15 #15888D
split-complementary
#56158D #888D15 #158D1A
monochromatic
#150522 #360D58 #56158D #761DC2 #953BE2

Accessibility & contrast

On white

11.13
#56158D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#56158D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #56158D
11.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56158D#FFFFFF#000000##FFFFFF
##56158D1.0011.131.8911.13
#FFFFFF11.131.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A90
Deuteranopia (green-blind)
#003B8B
Tritanopia (blue-blind)
#4A3853
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #56158d;
/* rgb */ color: rgb(86, 21, 141);
/* oklch */ color: oklch(37.7% 0.178 302.6);
Tailwind
colors: {
  custom: {
    50: '#8c5daf',
    500: '#56158d',
    950: '#000000',
  },
}
SCSS
$custom: #56158d;
$custom-light: #8c5daf;
$custom-dark: #000000;
JSON
{
  "hex": "#56158d",
  "rgb": {
    "r": 86,
    "g": 21,
    "b": 141
  },
  "hsl": {
    "h": 272.5,
    "s": 74.074,
    "l": 31.765
  },
  "oklch": {
    "l": 0.37718,
    "c": 0.1783,
    "h": 302.6
  },
  "luminance": 0.04438
}

Semantic roles & 50–950 ramp

primary
#56158D
secondary
#79C13D
accent
#F1378C
background
#F9F5FA
surface
#F1E9F5
border
#CBC5CF
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #56158D

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

Preview Lab → · Contrast checker → · Palette generator →

#56158D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva