#56138A#56138A

#56138A is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.3% C 0.177 H 303.8°. Best body text is #FFFFFF at 11.32:1 contrast (WCAG AA passes).

Color values

HEX#56138A
RGBrgb(86, 19, 138)
HSLhsl(274, 76%, 31%)
HSVhsv(274, 86%, 54%)
CMYKcmyk(37.7%, 86.2%, 0%, 45.9%)
CIE-LABlab(24.57, 50.08, -51.54)
CIE-LCHlch(24.57, 71.86, 314.17°)
OKLaboklab(37.29% 0.0983 -0.1471)
OKLCHoklch(37.29% 0.177 303.8)
XYZxyz(8.6570, 4.2792, 24.4097)
Luminance0.0428 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56138A #478A13
analogous
#1B138A #56138A #8A1382
triadic
#56138A #8A5613 #138A56
tetradic
#56138A #8A1B13 #478A13 #13828A
square
#56138A #8A1B13 #478A13 #13828A
split-complementary
#56138A #828A13 #138A1B
monochromatic
#13041E #340C54 #56138A #781AC0 #9734E3

Accessibility & contrast

On white

11.32
#56138A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#56138A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #56138A
11.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56138A#FFFFFF#000000##FFFFFF
##56138A1.0011.321.8611.32
#FFFFFF11.321.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398D
Deuteranopia (green-blind)
#003A88
Tritanopia (blue-blind)
#4B3651
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #56138a;
/* rgb */ color: rgb(86, 19, 138);
/* oklch */ color: oklch(37.3% 0.177 303.8);
Tailwind
colors: {
  custom: {
    50: '#8c5cad',
    500: '#56138a',
    950: '#000000',
  },
}
SCSS
$custom: #56138a;
$custom-light: #8c5cad;
$custom-dark: #000000;
JSON
{
  "hex": "#56138a",
  "rgb": {
    "r": 86,
    "g": 19,
    "b": 138
  },
  "hsl": {
    "h": 273.782,
    "s": 75.796,
    "l": 30.784
  },
  "oklch": {
    "l": 0.37291,
    "c": 0.17698,
    "h": 303.8
  },
  "luminance": 0.04279
}

Semantic roles & 50–950 ramp

primary
#56138A
secondary
#74BE3A
accent
#F23588
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D0410
muted
#7E797F

Preview Lab

Preview with #56138A

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

Preview Lab → · Contrast checker → · Palette generator →

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