#56138D#56138D

#56138D is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.6% C 0.180 H 302.7°. Best body text is #FFFFFF at 11.21:1 contrast (WCAG AA passes).

Color values

HEX#56138D
RGBrgb(86, 19, 141)
HSLhsl(273, 76%, 31%)
HSVhsv(273, 87%, 55%)
CMYKcmyk(39%, 86.5%, 0%, 44.7%)
CIE-LABlab(24.85, 50.78, -52.96)
CIE-LCHlch(24.85, 73.37, 313.79°)
OKLaboklab(37.57% 0.0973 -0.1513)
OKLCHoklch(37.57% 0.18 302.7)
XYZxyz(8.8772, 4.3672, 25.5694)
Luminance0.0437 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56138D #4A8D13
analogous
#19138D #56138D #8D1387
triadic
#56138D #8D5613 #138D56
tetradic
#56138D #8D1913 #4A8D13 #13878D
square
#56138D #8D1913 #4A8D13 #13878D
split-complementary
#56138D #878D13 #138D19
monochromatic
#140421 #350C57 #56138D #771AC3 #9636E4

Accessibility & contrast

On white

11.21
#56138D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #56138D
11.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56138D#FFFFFF#000000##FFFFFF
##56138D1.0011.211.8711.21
#FFFFFF11.211.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A90
Deuteranopia (green-blind)
#003B8B
Tritanopia (blue-blind)
#4A3753
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #56138d;
/* rgb */ color: rgb(86, 19, 141);
/* oklch */ color: oklch(37.6% 0.180 302.7);
Tailwind
colors: {
  custom: {
    50: '#8c5caf',
    500: '#56138d',
    950: '#000000',
  },
}
SCSS
$custom: #56138d;
$custom-light: #8c5caf;
$custom-dark: #000000;
JSON
{
  "hex": "#56138d",
  "rgb": {
    "r": 86,
    "g": 19,
    "b": 141
  },
  "hsl": {
    "h": 272.951,
    "s": 76.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.37567,
    "c": 0.17988,
    "h": 302.7
  },
  "luminance": 0.04367
}

Semantic roles & 50–950 ramp

primary
#56138D
secondary
#77C13B
accent
#F3358B
background
#F9F5FA
surface
#F1E9F5
border
#CBC5CF
text
#0D0410
muted
#7E797F

Preview Lab

Preview with #56138D

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

Preview Lab → · Contrast checker → · Palette generator →

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