#56187C#56187C

#56187C is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.5% C 0.159 H 308.4°. Best body text is #FFFFFF at 11.55:1 contrast (WCAG AA passes).

Color values

HEX#56187C
RGBrgb(86, 24, 124)
HSLhsl(277, 68%, 29%)
HSVhsv(277, 81%, 49%)
CMYKcmyk(30.6%, 80.6%, 0%, 51.4%)
CIE-LABlab(23.96, 45.07, -43.73)
CIE-LCHlch(23.96, 62.80, 315.86°)
OKLaboklab(36.48% 0.0986 -0.1242)
OKLCHoklch(36.48% 0.159 308.4)
XYZxyz(7.8017, 4.0871, 19.4428)
Luminance0.0409 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56187C #3E7C18
analogous
#24187C #56187C #7C1870
triadic
#56187C #7C5618 #187C56
tetradic
#56187C #7C2418 #3E7C18 #18707C
square
#56187C #7C2418 #3E7C18 #18707C
split-complementary
#56187C #707C18 #187C24
monochromatic
#12051A #320E49 #56187C #7A22AF #9B36D8

Accessibility & contrast

On white

11.55
#56187C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #56187C
11.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56187C#FFFFFF#000000##FFFFFF
##56187C1.0011.551.8211.55
#FFFFFF11.551.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377F
Deuteranopia (green-blind)
#003A7A
Tritanopia (blue-blind)
#50314A
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #56187c;
/* rgb */ color: rgb(86, 24, 124);
/* oklch */ color: oklch(36.5% 0.159 308.4);
Tailwind
colors: {
  custom: {
    50: '#8a5da3',
    500: '#56187c',
    950: '#000000',
  },
}
SCSS
$custom: #56187c;
$custom-light: #8a5da3;
$custom-dark: #000000;
JSON
{
  "hex": "#56187c",
  "rgb": {
    "r": 86,
    "g": 24,
    "b": 124
  },
  "hsl": {
    "h": 277.2,
    "s": 67.568,
    "l": 29.02
  },
  "oklch": {
    "l": 0.36484,
    "c": 0.15861,
    "h": 308.4
  },
  "luminance": 0.04087
}

Semantic roles & 50–950 ramp

primary
#56187C
secondary
#6AB13F
accent
#EA3D7F
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #56187C

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

Preview Lab → · Contrast checker → · Palette generator →

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