#56128C#56128C

#56128C is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.4% C 0.180 H 303.2°. Best body text is #FFFFFF at 11.29:1 contrast (WCAG AA passes).

Color values

HEX#56128C
RGBrgb(86, 18, 140)
HSLhsl(273, 77%, 31%)
HSVhsv(273, 87%, 55%)
CMYKcmyk(38.6%, 87.1%, 0%, 45.1%)
CIE-LABlab(24.65, 50.85, -52.66)
CIE-LCHlch(24.65, 73.20, 314.00°)
OKLaboklab(37.4% 0.0983 -0.1504)
OKLCHoklch(37.4% 0.18 303.2)
XYZxyz(8.7866, 4.3045, 25.1738)
Luminance0.0430 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56128C #488C12
analogous
#19128C #56128C #8C1285
triadic
#56128C #8C5612 #128C56
tetradic
#56128C #8C1912 #488C12 #12858C
square
#56128C #8C1912 #488C12 #12858C
split-complementary
#56128C #858C12 #128C19
monochromatic
#130420 #350B56 #56128C #7719C2 #9634E5

Accessibility & contrast

On white

11.29
#56128C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#56128C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #56128C
11.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56128C#FFFFFF#000000##FFFFFF
##56128C1.0011.291.8611.29
#FFFFFF11.291.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398F
Deuteranopia (green-blind)
#003A8A
Tritanopia (blue-blind)
#4B3652
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #56128c;
/* rgb */ color: rgb(86, 18, 140);
/* oklch */ color: oklch(37.4% 0.180 303.2);
Tailwind
colors: {
  custom: {
    50: '#8c5caf',
    500: '#56128c',
    950: '#000000',
  },
}
SCSS
$custom: #56128c;
$custom-light: #8c5caf;
$custom-dark: #000000;
JSON
{
  "hex": "#56128c",
  "rgb": {
    "r": 86,
    "g": 18,
    "b": 140
  },
  "hsl": {
    "h": 273.443,
    "s": 77.215,
    "l": 30.98
  },
  "oklch": {
    "l": 0.37403,
    "c": 0.17967,
    "h": 303.2
  },
  "luminance": 0.04304
}

Semantic roles & 50–950 ramp

primary
#56128C
secondary
#75C039
accent
#F43489
background
#F9F5FA
surface
#F1E9F5
border
#CBC5CF
text
#0D0410
muted
#7E797F

Preview Lab

Preview with #56128C

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

Preview Lab → · Contrast checker → · Palette generator →

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