#56137F#56137F

#56137F is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.3% C 0.166 H 307.8°. Best body text is #FFFFFF at 11.70:1 contrast (WCAG AA passes).

Color values

HEX#56137F
RGBrgb(86, 19, 127)
HSLhsl(277, 74%, 29%)
HSVhsv(277, 85%, 50%)
CMYKcmyk(32.3%, 85%, 0%, 50.2%)
CIE-LABlab(23.59, 47.55, -46.23)
CIE-LCHlch(23.59, 66.31, 315.81°)
OKLaboklab(36.31% 0.1019 -0.1315)
OKLCHoklch(36.31% 0.166 307.8)
XYZxyz(7.9006, 3.9766, 20.4259)
Luminance0.0398 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56137F #3C7F13
analogous
#20137F #56137F #7F1372
triadic
#56137F #7F5613 #137F56
tetradic
#56137F #7F2013 #3C7F13 #13727F
square
#56137F #7F2013 #3C7F13 #13727F
split-complementary
#56137F #727F13 #137F20
monochromatic
#12041B #320B4A #56137F #7A1BB4 #9C2DE0

Accessibility & contrast

On white

11.70
#56137F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#56137F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #56137F
11.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56137F#FFFFFF#000000##FFFFFF
##56137F1.0011.701.8011.70
#FFFFFF11.701.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003682
Deuteranopia (green-blind)
#00397D
Tritanopia (blue-blind)
#4F304B
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #56137f;
/* rgb */ color: rgb(86, 19, 127);
/* oklch */ color: oklch(36.3% 0.166 307.8);
Tailwind
colors: {
  custom: {
    50: '#8b5ba5',
    500: '#56137f',
    950: '#000000',
  },
}
SCSS
$custom: #56137f;
$custom-light: #8b5ba5;
$custom-dark: #000000;
JSON
{
  "hex": "#56137f",
  "rgb": {
    "r": 86,
    "g": 19,
    "b": 127
  },
  "hsl": {
    "h": 277.222,
    "s": 73.973,
    "l": 28.627
  },
  "oklch": {
    "l": 0.3631,
    "c": 0.16637,
    "h": 307.8
  },
  "luminance": 0.03976
}

Semantic roles & 50–950 ramp

primary
#56137F
secondary
#68B439
accent
#F1377E
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #56137F

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

Preview Lab → · Contrast checker → · Palette generator →

#56137F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva