#56337A#56337A

#56337A is a dark, moderate violet. Relative luminance 0.058; OKLCH L 39.9% C 0.118 H 304.3°. Best body text is #FFFFFF at 9.77:1 contrast (WCAG AA passes).

Color values

HEX#56337A
RGBrgb(86, 51, 122)
HSLhsl(270, 41%, 34%)
HSVhsv(270, 58%, 48%)
CMYKcmyk(29.5%, 58.2%, 0%, 52.2%)
CIE-LABlab(28.78, 30.89, -34.70)
CIE-LCHlch(28.78, 46.46, 311.68°)
OKLaboklab(39.9% 0.0668 -0.0979)
OKLCHoklch(39.9% 0.118 304.3)
XYZxyz(8.5337, 5.7513, 19.0691)
Luminance0.0575 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56337A #577A33
analogous
#33347A #56337A #7A337A
triadic
#56337A #7A5633 #337A56
tetradic
#56337A #7A3334 #577A33 #337A7A
square
#56337A #7A3334 #577A33 #337A7A
split-complementary
#56337A #7A7A33 #347A33
monochromatic
#190F24 #38214F #56337A #7445A5 #9368C0

Accessibility & contrast

On white

9.77
#56337A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#56337A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #56337A
9.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56337A#FFFFFF#000000##FFFFFF
##56337A1.009.772.159.77
#FFFFFF9.771.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#18437C
Deuteranopia (green-blind)
#254478
Tritanopia (blue-blind)
#504151
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #56337a;
/* rgb */ color: rgb(86, 51, 122);
/* oklch */ color: oklch(39.9% 0.118 304.3);
Tailwind
colors: {
  custom: {
    50: '#886ca1',
    500: '#56337a',
    950: '#000000',
  },
}
SCSS
$custom: #56337a;
$custom-light: #886ca1;
$custom-dark: #000000;
JSON
{
  "hex": "#56337a",
  "rgb": {
    "r": 86,
    "g": 51,
    "b": 122
  },
  "hsl": {
    "h": 269.577,
    "s": 41.04,
    "l": 33.922
  },
  "oklch": {
    "l": 0.39903,
    "c": 0.11847,
    "h": 304.3
  },
  "luminance": 0.05751
}

Semantic roles & 50–950 ramp

primary
#56337A
secondary
#85A861
accent
#D15795
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0C070F
muted
#7D7A7E

Preview Lab

Preview with #56337A

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

Preview Lab → · Contrast checker → · Palette generator →

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