#56317A#56317A

#56317A is a dark, vivid violet. Relative luminance 0.056; OKLCH L 39.6% C 0.122 H 304.8°. Best body text is #FFFFFF at 9.92:1 contrast (WCAG AA passes).

Color values

HEX#56317A
RGBrgb(86, 49, 122)
HSLhsl(270, 43%, 34%)
HSVhsv(270, 60%, 48%)
CMYKcmyk(29.5%, 59.8%, 0%, 52.2%)
CIE-LABlab(28.33, 32.07, -35.41)
CIE-LCHlch(28.33, 47.78, 312.17°)
OKLaboklab(39.57% 0.0696 -0.0999)
OKLCHoklch(39.57% 0.122 304.8)
XYZxyz(8.4482, 5.5802, 19.0406)
Luminance0.0558 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56317A #557A31
analogous
#31317A #56317A #7A3179
triadic
#56317A #7A5631 #317A56
tetradic
#56317A #7A3131 #557A31 #31797A
square
#56317A #7A3131 #557A31 #31797A
split-complementary
#56317A #797A31 #317A31
monochromatic
#180E23 #371F4E #56317A #7543A6 #9364C1

Accessibility & contrast

On white

9.92
#56317A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#56317A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #56317A
9.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56317A#FFFFFF#000000##FFFFFF
##56317A1.009.922.129.92
#FFFFFF9.921.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#13427C
Deuteranopia (green-blind)
#224378
Tritanopia (blue-blind)
#503F50
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #56317a;
/* rgb */ color: rgb(86, 49, 122);
/* oklch */ color: oklch(39.6% 0.122 304.8);
Tailwind
colors: {
  custom: {
    50: '#886ba1',
    500: '#56317a',
    950: '#000000',
  },
}
SCSS
$custom: #56317a;
$custom-light: #886ba1;
$custom-dark: #000000;
JSON
{
  "hex": "#56317a",
  "rgb": {
    "r": 86,
    "g": 49,
    "b": 122
  },
  "hsl": {
    "h": 270.411,
    "s": 42.69,
    "l": 33.529
  },
  "oklch": {
    "l": 0.39574,
    "c": 0.12178,
    "h": 304.8
  },
  "luminance": 0.0558
}

Semantic roles & 50–950 ramp

primary
#56317A
secondary
#83A85E
accent
#D25593
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0C070F
muted
#7D7A7E

Preview Lab

Preview with #56317A

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

Preview Lab → · Contrast checker → · Palette generator →

#56317A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva