#56319F#56319F

#56319F is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.4% C 0.168 H 293.4°. Best body text is #FFFFFF at 8.99:1 contrast (WCAG AA passes).

Color values

HEX#56319F
RGBrgb(86, 49, 159)
HSLhsl(260, 53%, 41%)
HSVhsv(260, 69%, 62%)
CMYKcmyk(45.9%, 69.2%, 0%, 37.6%)
CIE-LABlab(31.06, 42.22, -53.87)
CIE-LCHlch(31.06, 68.44, 308.09°)
OKLaboklab(42.42% 0.0666 -0.1542)
OKLCHoklch(42.42% 0.168 293.4)
XYZxyz(11.1924, 6.6779, 33.4934)
Luminance0.0668 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56319F #7A9F31
analogous
#31439F #56319F #8D319F
triadic
#56319F #9F5631 #319F56
tetradic
#56319F #9F3143 #7A9F31 #319F8D
square
#56319F #9F3143 #7A9F31 #319F8D
split-complementary
#56319F #9F8D31 #439F31
monochromatic
#231441 #3D2370 #56319F #7247C6 #9676D5

Accessibility & contrast

On white

8.99
#56319F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#56319F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #56319F
8.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56319F#FFFFFF#000000##FFFFFF
##56319F1.008.992.348.99
#FFFFFF8.991.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA2
Deuteranopia (green-blind)
#00479D
Tritanopia (blue-blind)
#414C64
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #56319f;
/* rgb */ color: rgb(86, 49, 159);
/* oklch */ color: oklch(42.4% 0.168 293.4);
Tailwind
colors: {
  custom: {
    50: '#8c6cbc',
    500: '#56319f',
    950: '#000000',
  },
}
SCSS
$custom: #56319f;
$custom-light: #8c6cbc;
$custom-dark: #000000;
JSON
{
  "hex": "#56319f",
  "rgb": {
    "r": 86,
    "g": 49,
    "b": 159
  },
  "hsl": {
    "h": 260.182,
    "s": 52.885,
    "l": 40.784
  },
  "oklch": {
    "l": 0.42419,
    "c": 0.16792,
    "h": 293.4
  },
  "luminance": 0.06678
}

Semantic roles & 50–950 ramp

primary
#56319F
secondary
#A3BD6F
accent
#DC4CAC
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #56319F

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

Preview Lab → · Contrast checker → · Palette generator →

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