#56339B#56339B

#56339B is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.4% C 0.160 H 293.9°. Best body text is #FFFFFF at 8.96:1 contrast (WCAG AA passes).

Color values

HEX#56339B
RGBrgb(86, 51, 155)
HSLhsl(260, 50%, 40%)
HSVhsv(260, 67%, 61%)
CMYKcmyk(44.5%, 67.1%, 0%, 39.2%)
CIE-LABlab(31.14, 39.99, -51.31)
CIE-LCHlch(31.14, 65.05, 307.93°)
OKLaboklab(42.38% 0.065 -0.1466)
OKLCHoklch(42.38% 0.16 293.9)
XYZxyz(10.9364, 6.7123, 31.7234)
Luminance0.0671 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56339B #789B33
analogous
#33449B #56339B #8A339B
triadic
#56339B #9B5633 #339B56
tetradic
#56339B #9B3344 #789B33 #339B8A
square
#56339B #9B3344 #789B33 #339B8A
split-complementary
#56339B #9B8A33 #449B33
monochromatic
#23153F #3C246D #56339B #7248C3 #9576D2

Accessibility & contrast

On white

8.96
#56339B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#56339B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #56339B
8.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56339B#FFFFFF#000000##FFFFFF
##56339B1.008.962.348.96
#FFFFFF8.961.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A9E
Deuteranopia (green-blind)
#004799
Tritanopia (blue-blind)
#434C62
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #56339b;
/* rgb */ color: rgb(86, 51, 155);
/* oklch */ color: oklch(42.4% 0.160 293.9);
Tailwind
colors: {
  custom: {
    50: '#8b6db9',
    500: '#56339b',
    950: '#000000',
  },
}
SCSS
$custom: #56339b;
$custom-light: #8b6db9;
$custom-dark: #000000;
JSON
{
  "hex": "#56339b",
  "rgb": {
    "r": 86,
    "g": 51,
    "b": 155
  },
  "hsl": {
    "h": 260.192,
    "s": 50.485,
    "l": 40.392
  },
  "oklch": {
    "l": 0.42377,
    "c": 0.16042,
    "h": 293.9
  },
  "luminance": 0.06713
}

Semantic roles & 50–950 ramp

primary
#56339B
secondary
#A1BA6F
accent
#DA4EAB
background
#F8F6FB
surface
#F0ECF6
border
#CBC7D0
text
#0D0712
muted
#7D7A81

Preview Lab

Preview with #56339B

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

Preview Lab → · Contrast checker → · Palette generator →

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