#56187B#56187B

#56187B is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.4% C 0.158 H 308.8°. Best body text is #FFFFFF at 11.59:1 contrast (WCAG AA passes).

Color values

HEX#56187B
RGBrgb(86, 24, 123)
HSLhsl(278, 67%, 29%)
HSVhsv(278, 80%, 48%)
CMYKcmyk(30.1%, 80.5%, 0%, 51.8%)
CIE-LABlab(23.88, 44.84, -43.23)
CIE-LCHlch(23.88, 62.28, 316.04°)
OKLaboklab(36.4% 0.0988 -0.1228)
OKLCHoklch(36.4% 0.158 308.8)
XYZxyz(7.7388, 4.0619, 19.1114)
Luminance0.0406 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56187B #3D7B18
analogous
#25187B #56187B #7B186F
triadic
#56187B #7B5618 #187B56
tetradic
#56187B #7B2518 #3D7B18 #186F7B
square
#56187B #7B2518 #3D7B18 #186F7B
split-complementary
#56187B #6F7B18 #187B25
monochromatic
#12051A #320E48 #56187B #7A22AE #9B36D8

Accessibility & contrast

On white

11.59
#56187B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#56187B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #56187B
11.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56187B#FFFFFF#000000##FFFFFF
##56187B1.0011.591.8111.59
#FFFFFF11.591.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367E
Deuteranopia (green-blind)
#003979
Tritanopia (blue-blind)
#503149
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #56187b;
/* rgb */ color: rgb(86, 24, 123);
/* oklch */ color: oklch(36.4% 0.158 308.8);
Tailwind
colors: {
  custom: {
    50: '#8a5da2',
    500: '#56187b',
    950: '#000000',
  },
}
SCSS
$custom: #56187b;
$custom-light: #8a5da2;
$custom-dark: #000000;
JSON
{
  "hex": "#56187b",
  "rgb": {
    "r": 86,
    "g": 24,
    "b": 123
  },
  "hsl": {
    "h": 277.576,
    "s": 67.347,
    "l": 28.824
  },
  "oklch": {
    "l": 0.36401,
    "c": 0.1576,
    "h": 308.8
  },
  "luminance": 0.04062
}

Semantic roles & 50–950 ramp

primary
#56187B
secondary
#69B03F
accent
#EA3E7E
background
#F8F5FA
surface
#F0E9F3
border
#CBC5CD
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #56187B

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

Preview Lab → · Contrast checker → · Palette generator →

#56187B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva