#56158E#56158E

#56158E is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.8% C 0.179 H 302.2°. Best body text is #FFFFFF at 11.09:1 contrast (WCAG AA passes).

Color values

HEX#56158E
RGBrgb(86, 21, 142)
HSLhsl(272, 74%, 32%)
HSVhsv(272, 85%, 56%)
CMYKcmyk(39.4%, 85.2%, 0%, 44.3%)
CIE-LABlab(25.16, 50.37, -53.07)
CIE-LCHlch(25.16, 73.17, 313.50°)
OKLaboklab(37.81% 0.0956 -0.1516)
OKLCHoklch(37.81% 0.179 302.2)
XYZxyz(8.9872, 4.4677, 25.9748)
Luminance0.0447 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56158E #4D8E15
analogous
#19158E #56158E #8E158A
triadic
#56158E #8E5615 #158E56
tetradic
#56158E #8E1915 #4D8E15 #158A8E
square
#56158E #8E1915 #4D8E15 #158A8E
split-complementary
#56158E #8A8E15 #158E19
monochromatic
#150523 #360D59 #56158E #761DC3 #953BE2

Accessibility & contrast

On white

11.09
#56158E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #56158E
11.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56158E#FFFFFF#000000##FFFFFF
##56158E1.0011.091.8911.09
#FFFFFF11.091.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B91
Deuteranopia (green-blind)
#003B8C
Tritanopia (blue-blind)
#4A3854
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #56158e;
/* rgb */ color: rgb(86, 21, 142);
/* oklch */ color: oklch(37.8% 0.179 302.2);
Tailwind
colors: {
  custom: {
    50: '#8c5db0',
    500: '#56158e',
    950: '#000000',
  },
}
SCSS
$custom: #56158e;
$custom-light: #8c5db0;
$custom-dark: #000000;
JSON
{
  "hex": "#56158e",
  "rgb": {
    "r": 86,
    "g": 21,
    "b": 142
  },
  "hsl": {
    "h": 272.231,
    "s": 74.233,
    "l": 31.961
  },
  "oklch": {
    "l": 0.37809,
    "c": 0.17928,
    "h": 302.2
  },
  "luminance": 0.04468
}

Semantic roles & 50–950 ramp

primary
#56158E
secondary
#7AC23D
accent
#F1378D
background
#F9F5FB
surface
#F1E9F6
border
#CBC5D0
text
#0D0511
muted
#7E7980

Preview Lab

Preview with #56158E

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

Preview Lab → · Contrast checker → · Palette generator →

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