#56339A#56339A

#56339A is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.3% C 0.159 H 294.2°. Best body text is #FFFFFF at 8.99:1 contrast (WCAG AA passes).

Color values

HEX#56339A
RGBrgb(86, 51, 154)
HSLhsl(260, 50%, 40%)
HSVhsv(260, 67%, 60%)
CMYKcmyk(44.2%, 66.9%, 0%, 39.6%)
CIE-LABlab(31.06, 39.71, -50.83)
CIE-LCHlch(31.06, 64.50, 308.00°)
OKLaboklab(42.3% 0.0652 -0.1452)
OKLCHoklch(42.3% 0.159 294.2)
XYZxyz(10.8527, 6.6789, 31.2829)
Luminance0.0668 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56339A #779A33
analogous
#33449A #56339A #89339A
triadic
#56339A #9A5633 #339A56
tetradic
#56339A #9A3344 #779A33 #339A89
square
#56339A #9A3344 #779A33 #339A89
split-complementary
#56339A #9A8933 #449A33
monochromatic
#23153E #3C246C #56339A #7148C2 #9576D2

Accessibility & contrast

On white

8.99
#56339A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #56339A
8.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56339A#FFFFFF#000000##FFFFFF
##56339A1.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)
#004A9D
Deuteranopia (green-blind)
#004798
Tritanopia (blue-blind)
#434B62
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #56339a;
/* rgb */ color: rgb(86, 51, 154);
/* oklch */ color: oklch(42.3% 0.159 294.2);
Tailwind
colors: {
  custom: {
    50: '#8b6db9',
    500: '#56339a',
    950: '#000000',
  },
}
SCSS
$custom: #56339a;
$custom-light: #8b6db9;
$custom-dark: #000000;
JSON
{
  "hex": "#56339a",
  "rgb": {
    "r": 86,
    "g": 51,
    "b": 154
  },
  "hsl": {
    "h": 260.388,
    "s": 50.244,
    "l": 40.196
  },
  "oklch": {
    "l": 0.42296,
    "c": 0.15918,
    "h": 294.2
  },
  "luminance": 0.06679
}

Semantic roles & 50–950 ramp

primary
#56339A
secondary
#A0BA6F
accent
#DA4EAA
background
#F8F6FB
surface
#F0ECF6
border
#CBC7D0
text
#0C0711
muted
#7D7A80

Preview Lab

Preview with #56339A

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

Preview Lab → · Contrast checker → · Palette generator →

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