#56316C#56316C

#56316C is a dark, moderate violet. Relative luminance 0.053; OKLCH L 38.7% C 0.104 H 311.4°. Best body text is #FFFFFF at 10.24:1 contrast (WCAG AA passes).

Color values

HEX#56316C
RGBrgb(86, 49, 108)
HSLhsl(278, 38%, 31%)
HSVhsv(278, 55%, 42%)
CMYKcmyk(20.4%, 54.6%, 0%, 57.6%)
CIE-LABlab(27.46, 28.49, -27.90)
CIE-LCHlch(27.46, 39.88, 315.60°)
OKLaboklab(38.65% 0.0688 -0.078)
OKLCHoklch(38.65% 0.104 311.4)
XYZxyz(7.6424, 5.2579, 14.7967)
Luminance0.0526 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56316C #476C31
analogous
#38316C #56316C #6C3164
triadic
#56316C #6C5631 #316C56
tetradic
#56316C #6C3831 #476C31 #31646C
square
#56316C #6C3831 #476C31 #31646C
split-complementary
#56316C #646C31 #316C38
monochromatic
#130B18 #341E42 #56316C #784496 #9760B7

Accessibility & contrast

On white

10.24
#56316C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#56316C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #56316C
10.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56316C#FFFFFF#000000##FFFFFF
##56316C1.0010.242.0510.24
#FFFFFF10.241.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#223F6E
Deuteranopia (green-blind)
#2D426A
Tritanopia (blue-blind)
#543B49
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #56316c;
/* rgb */ color: rgb(86, 49, 108);
/* oklch */ color: oklch(38.7% 0.104 311.4);
Tailwind
colors: {
  custom: {
    50: '#876a96',
    500: '#56316c',
    950: '#000000',
  },
}
SCSS
$custom: #56316c;
$custom-light: #876a96;
$custom-dark: #000000;
JSON
{
  "hex": "#56316c",
  "rgb": {
    "r": 86,
    "g": 49,
    "b": 108
  },
  "hsl": {
    "h": 277.627,
    "s": 37.58,
    "l": 30.784
  },
  "oklch": {
    "l": 0.38652,
    "c": 0.10397,
    "h": 311.4
  },
  "luminance": 0.05258
}

Semantic roles & 50–950 ramp

primary
#56316C
secondary
#749D5C
accent
#CE5A85
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0B060D
muted
#7C7A7E

Preview Lab

Preview with #56316C

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

Preview Lab → · Contrast checker → · Palette generator →

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