#56158F#56158F

#56158F is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.9% C 0.180 H 301.9°. Best body text is #FFFFFF at 11.05:1 contrast (WCAG AA passes).

Color values

HEX#56158F
RGBrgb(86, 21, 143)
HSLhsl(272, 74%, 32%)
HSVhsv(272, 85%, 56%)
CMYKcmyk(39.9%, 85.3%, 0%, 43.9%)
CIE-LABlab(25.25, 50.61, -53.54)
CIE-LCHlch(25.25, 73.67, 313.39°)
OKLaboklab(37.9% 0.0953 -0.153)
OKLCHoklch(37.9% 0.18 301.9)
XYZxyz(9.0626, 4.4979, 26.3720)
Luminance0.0450 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56158F #4E8F15
analogous
#19158F #56158F #8F158B
triadic
#56158F #8F5615 #158F56
tetradic
#56158F #8F1915 #4E8F15 #158B8F
square
#56158F #8F1915 #4E8F15 #158B8F
split-complementary
#56158F #8B8F15 #158F19
monochromatic
#160524 #360D5A #56158F #761DC4 #953CE2

Accessibility & contrast

On white

11.05
#56158F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#56158F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #56158F
11.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56158F#FFFFFF#000000##FFFFFF
##56158F1.0011.051.9011.05
#FFFFFF11.051.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B92
Deuteranopia (green-blind)
#003B8D
Tritanopia (blue-blind)
#493854
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #56158f;
/* rgb */ color: rgb(86, 21, 143);
/* oklch */ color: oklch(37.9% 0.180 301.9);
Tailwind
colors: {
  custom: {
    50: '#8c5db1',
    500: '#56158f',
    950: '#000000',
  },
}
SCSS
$custom: #56158f;
$custom-light: #8c5db1;
$custom-dark: #000000;
JSON
{
  "hex": "#56158f",
  "rgb": {
    "r": 86,
    "g": 21,
    "b": 143
  },
  "hsl": {
    "h": 271.967,
    "s": 74.39,
    "l": 32.157
  },
  "oklch": {
    "l": 0.37902,
    "c": 0.18027,
    "h": 301.9
  },
  "luminance": 0.04498
}

Semantic roles & 50–950 ramp

primary
#56158F
secondary
#7CC23E
accent
#F1378E
background
#F9F5FB
surface
#F1E9F6
border
#CBC5D0
text
#0D0511
muted
#7E7980

Preview Lab

Preview with #56158F

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

Preview Lab → · Contrast checker → · Palette generator →

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