#56187D#56187D

#56187D is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.6% C 0.160 H 308.0°. Best body text is #FFFFFF at 11.52:1 contrast (WCAG AA passes).

Color values

HEX#56187D
RGBrgb(86, 24, 125)
HSLhsl(277, 68%, 29%)
HSVhsv(277, 81%, 49%)
CMYKcmyk(31.2%, 80.8%, 0%, 51%)
CIE-LABlab(24.04, 45.30, -44.23)
CIE-LCHlch(24.04, 63.31, 315.68°)
OKLaboklab(36.57% 0.0984 -0.1257)
OKLCHoklch(36.57% 0.16 308)
XYZxyz(7.8653, 4.1125, 19.7775)
Luminance0.0411 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56187D #3F7D18
analogous
#24187D #56187D #7D1872
triadic
#56187D #7D5618 #187D56
tetradic
#56187D #7D2418 #3F7D18 #18727D
square
#56187D #7D2418 #3F7D18 #18727D
split-complementary
#56187D #727D18 #187D24
monochromatic
#12051A #330E4A #56187D #7922B0 #9A37D9

Accessibility & contrast

On white

11.52
#56187D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#56187D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #56187D
11.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56187D#FFFFFF#000000##FFFFFF
##56187D1.0011.521.8211.52
#FFFFFF11.521.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003780
Deuteranopia (green-blind)
#003A7B
Tritanopia (blue-blind)
#50324A
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #56187d;
/* rgb */ color: rgb(86, 24, 125);
/* oklch */ color: oklch(36.6% 0.160 308.0);
Tailwind
colors: {
  custom: {
    50: '#8a5da3',
    500: '#56187d',
    950: '#000000',
  },
}
SCSS
$custom: #56187d;
$custom-light: #8a5da3;
$custom-dark: #000000;
JSON
{
  "hex": "#56187d",
  "rgb": {
    "r": 86,
    "g": 24,
    "b": 125
  },
  "hsl": {
    "h": 276.832,
    "s": 67.785,
    "l": 29.216
  },
  "oklch": {
    "l": 0.36568,
    "c": 0.15961,
    "h": 308
  },
  "luminance": 0.04112
}

Semantic roles & 50–950 ramp

primary
#56187D
secondary
#6BB23F
accent
#EB3D80
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #56187D

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

Preview Lab → · Contrast checker → · Palette generator →

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