#56118C#56118C

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

Color values

HEX#56118C
RGBrgb(86, 17, 140)
HSLhsl(274, 78%, 31%)
HSVhsv(274, 88%, 55%)
CMYKcmyk(38.6%, 87.9%, 0%, 45.1%)
CIE-LABlab(24.55, 51.14, -52.82)
CIE-LCHlch(24.55, 73.53, 314.08°)
OKLaboklab(37.33% 0.0989 -0.1509)
OKLCHoklch(37.33% 0.18 303.2)
XYZxyz(8.7707, 4.2728, 25.1685)
Luminance0.0427 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56118C #478C11
analogous
#19118C #56118C #8C1184
triadic
#56118C #8C5611 #118C56
tetradic
#56118C #8C1911 #478C11 #11848C
square
#56118C #8C1911 #478C11 #11848C
split-complementary
#56118C #848C11 #118C19
monochromatic
#13041F #340A55 #56118C #7818C3 #9731E6

Accessibility & contrast

On white

11.32
#56118C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#56118C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #56118C
11.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56118C#FFFFFF#000000##FFFFFF
##56118C1.0011.321.8511.32
#FFFFFF11.321.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.321.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #56118c;
/* rgb */ color: rgb(86, 17, 140);
/* oklch */ color: oklch(37.3% 0.180 303.2);
Tailwind
colors: {
  custom: {
    50: '#8c5baf',
    500: '#56118c',
    950: '#000000',
  },
}
SCSS
$custom: #56118c;
$custom-light: #8c5baf;
$custom-dark: #000000;
JSON
{
  "hex": "#56118c",
  "rgb": {
    "r": 86,
    "g": 17,
    "b": 140
  },
  "hsl": {
    "h": 273.659,
    "s": 78.344,
    "l": 30.784
  },
  "oklch": {
    "l": 0.37334,
    "c": 0.18041,
    "h": 303.2
  },
  "luminance": 0.04273
}

Semantic roles & 50–950 ramp

primary
#56118C
secondary
#74C138
accent
#F53388
background
#F9F5FA
surface
#F1E9F5
border
#CBC5CF
text
#0D0410
muted
#7E797F

Preview Lab

Preview with #56118C

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

Preview Lab → · Contrast checker → · Palette generator →

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