#56339D#56339D

#56339D is a dark, vivid violet. Relative luminance 0.068; OKLCH L 42.5% C 0.163 H 293.4°. Best body text is #FFFFFF at 8.91:1 contrast (WCAG AA passes).

Color values

HEX#56339D
RGBrgb(86, 51, 157)
HSLhsl(260, 51%, 41%)
HSVhsv(260, 68%, 62%)
CMYKcmyk(45.2%, 67.5%, 0%, 38.4%)
CIE-LABlab(31.30, 40.56, -52.27)
CIE-LCHlch(31.30, 66.16, 307.81°)
OKLaboklab(42.54% 0.0648 -0.1495)
OKLCHoklch(42.54% 0.163 293.4)
XYZxyz(11.1057, 6.7801, 32.6153)
Luminance0.0678 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56339D #7A9D33
analogous
#33459D #56339D #8B339D
triadic
#56339D #9D5633 #339D56
tetradic
#56339D #9D3345 #7A9D33 #339D8B
square
#56339D #9D3345 #7A9D33 #339D8B
split-complementary
#56339D #9D8B33 #459D33
monochromatic
#231541 #3D246F #56339D #7249C4 #9677D3

Accessibility & contrast

On white

8.91
#56339D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#56339D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #56339D
8.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56339D#FFFFFF#000000##FFFFFF
##56339D1.008.912.368.91
#FFFFFF8.911.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA0
Deuteranopia (green-blind)
#00489B
Tritanopia (blue-blind)
#424D63
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #56339d;
/* rgb */ color: rgb(86, 51, 157);
/* oklch */ color: oklch(42.5% 0.163 293.4);
Tailwind
colors: {
  custom: {
    50: '#8c6dbb',
    500: '#56339d',
    950: '#000000',
  },
}
SCSS
$custom: #56339d;
$custom-light: #8c6dbb;
$custom-dark: #000000;
JSON
{
  "hex": "#56339d",
  "rgb": {
    "r": 86,
    "g": 51,
    "b": 157
  },
  "hsl": {
    "h": 259.811,
    "s": 50.962,
    "l": 40.784
  },
  "oklch": {
    "l": 0.4254,
    "c": 0.1629,
    "h": 293.4
  },
  "luminance": 0.0678
}

Semantic roles & 50–950 ramp

primary
#56339D
secondary
#A3BB70
accent
#DA4DAC
background
#F8F6FB
surface
#F0ECF6
border
#CBC7D0
text
#0D0712
muted
#7D7A81

Preview Lab

Preview with #56339D

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

Preview Lab → · Contrast checker → · Palette generator →

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