#56158C#56158C

#56158C is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.6% C 0.177 H 302.9°. Best body text is #FFFFFF at 11.16:1 contrast (WCAG AA passes).

Color values

HEX#56158C
RGBrgb(86, 21, 140)
HSLhsl(273, 74%, 32%)
HSVhsv(273, 85%, 55%)
CMYKcmyk(38.6%, 85%, 0%, 45.1%)
CIE-LABlab(24.98, 49.90, -52.13)
CIE-LCHlch(24.98, 72.16, 313.75°)
OKLaboklab(37.63% 0.0963 -0.1489)
OKLCHoklch(37.63% 0.177 302.9)
XYZxyz(8.8384, 4.4082, 25.1911)
Luminance0.0441 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56158C #4B8C15
analogous
#1B158C #56158C #8C1587
triadic
#56158C #8C5615 #158C56
tetradic
#56158C #8C1B15 #4B8C15 #15878C
square
#56158C #8C1B15 #4B8C15 #15878C
split-complementary
#56158C #878C15 #158C1B
monochromatic
#150522 #350D57 #56158C #771DC1 #953AE1

Accessibility & contrast

On white

11.16
#56158C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#56158C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #56158C
11.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56158C#FFFFFF#000000##FFFFFF
##56158C1.0011.161.8811.16
#FFFFFF11.161.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8F
Deuteranopia (green-blind)
#003B8A
Tritanopia (blue-blind)
#4A3752
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #56158c;
/* rgb */ color: rgb(86, 21, 140);
/* oklch */ color: oklch(37.6% 0.177 302.9);
Tailwind
colors: {
  custom: {
    50: '#8c5daf',
    500: '#56158c',
    950: '#000000',
  },
}
SCSS
$custom: #56158c;
$custom-light: #8c5daf;
$custom-dark: #000000;
JSON
{
  "hex": "#56158c",
  "rgb": {
    "r": 86,
    "g": 21,
    "b": 140
  },
  "hsl": {
    "h": 272.773,
    "s": 73.913,
    "l": 31.569
  },
  "oklch": {
    "l": 0.37626,
    "c": 0.17731,
    "h": 302.9
  },
  "luminance": 0.04408
}

Semantic roles & 50–950 ramp

primary
#56158C
secondary
#78C03D
accent
#F1378B
background
#F9F5FA
surface
#F1E9F5
border
#CBC5CF
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #56158C

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

Preview Lab → · Contrast checker → · Palette generator →

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