#56187A#56187A

#56187A is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.3% C 0.157 H 309.2°. Best body text is #FFFFFF at 11.62:1 contrast (WCAG AA passes).

Color values

HEX#56187A
RGBrgb(86, 24, 122)
HSLhsl(278, 67%, 29%)
HSVhsv(278, 80%, 48%)
CMYKcmyk(29.5%, 80.3%, 0%, 52.2%)
CIE-LABlab(23.79, 44.61, -42.73)
CIE-LCHlch(23.79, 61.77, 316.23°)
OKLaboklab(36.32% 0.0991 -0.1213)
OKLCHoklch(36.32% 0.157 309.2)
XYZxyz(7.6765, 4.0370, 18.7834)
Luminance0.0404 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56187A #3C7A18
analogous
#25187A #56187A #7A186D
triadic
#56187A #7A5618 #187A56
tetradic
#56187A #7A2518 #3C7A18 #186D7A
square
#56187A #7A2518 #3C7A18 #186D7A
split-complementary
#56187A #6D7A18 #187A25
monochromatic
#12051A #320E47 #56187A #7A22AD #9C35D7

Accessibility & contrast

On white

11.62
#56187A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #56187A
11.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56187A#FFFFFF#000000##FFFFFF
##56187A1.0011.621.8111.62
#FFFFFF11.621.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367D
Deuteranopia (green-blind)
#003978
Tritanopia (blue-blind)
#513049
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #56187a;
/* rgb */ color: rgb(86, 24, 122);
/* oklch */ color: oklch(36.3% 0.157 309.2);
Tailwind
colors: {
  custom: {
    50: '#8a5da1',
    500: '#56187a',
    950: '#000000',
  },
}
SCSS
$custom: #56187a;
$custom-light: #8a5da1;
$custom-dark: #000000;
JSON
{
  "hex": "#56187a",
  "rgb": {
    "r": 86,
    "g": 24,
    "b": 122
  },
  "hsl": {
    "h": 277.959,
    "s": 67.123,
    "l": 28.627
  },
  "oklch": {
    "l": 0.36318,
    "c": 0.15659,
    "h": 309.2
  },
  "luminance": 0.04037
}

Semantic roles & 50–950 ramp

primary
#56187A
secondary
#68AF3F
accent
#EA3E7D
background
#F8F5FA
surface
#F0E9F3
border
#CBC5CD
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #56187A

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

Preview Lab → · Contrast checker → · Palette generator →

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