#56138C#56138C

#56138C is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.5% C 0.179 H 303.1°. Best body text is #FFFFFF at 11.24:1 contrast (WCAG AA passes).

Color values

HEX#56138C
RGBrgb(86, 19, 140)
HSLhsl(273, 76%, 31%)
HSVhsv(273, 86%, 55%)
CMYKcmyk(38.6%, 86.4%, 0%, 45.1%)
CIE-LABlab(24.76, 50.54, -52.49)
CIE-LCHlch(24.76, 72.87, 313.92°)
OKLaboklab(37.47% 0.0976 -0.1499)
OKLCHoklch(37.47% 0.179 303.1)
XYZxyz(8.8031, 4.3376, 25.1793)
Luminance0.0434 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56138C #498C13
analogous
#19138C #56138C #8C1385
triadic
#56138C #8C5613 #138C56
tetradic
#56138C #8C1913 #498C13 #13858C
square
#56138C #8C1913 #498C13 #13858C
split-complementary
#56138C #858C13 #138C19
monochromatic
#140420 #350C56 #56138C #771AC2 #9636E4

Accessibility & contrast

On white

11.24
#56138C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#56138C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #56138C
11.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56138C#FFFFFF#000000##FFFFFF
##56138C1.0011.241.8711.24
#FFFFFF11.241.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.241.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #56138c;
/* rgb */ color: rgb(86, 19, 140);
/* oklch */ color: oklch(37.5% 0.179 303.1);
Tailwind
colors: {
  custom: {
    50: '#8c5caf',
    500: '#56138c',
    950: '#000000',
  },
}
SCSS
$custom: #56138c;
$custom-light: #8c5caf;
$custom-dark: #000000;
JSON
{
  "hex": "#56138c",
  "rgb": {
    "r": 86,
    "g": 19,
    "b": 140
  },
  "hsl": {
    "h": 273.223,
    "s": 76.101,
    "l": 31.176
  },
  "oklch": {
    "l": 0.37474,
    "c": 0.17891,
    "h": 303.1
  },
  "luminance": 0.04338
}

Semantic roles & 50–950 ramp

primary
#56138C
secondary
#76C03B
accent
#F3358A
background
#F9F5FA
surface
#F1E9F5
border
#CBC5CF
text
#0D0410
muted
#7E797F

Preview Lab

Preview with #56138C

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

Preview Lab → · Contrast checker → · Palette generator →

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