#56337B#56337B

#56337B is a dark, moderate violet. Relative luminance 0.058; OKLCH L 40.0% C 0.120 H 303.9°. Best body text is #FFFFFF at 9.74:1 contrast (WCAG AA passes).

Color values

HEX#56337B
RGBrgb(86, 51, 123)
HSLhsl(269, 41%, 34%)
HSVhsv(269, 59%, 48%)
CMYKcmyk(30.1%, 58.5%, 0%, 51.8%)
CIE-LABlab(28.84, 31.15, -35.22)
CIE-LCHlch(28.84, 47.02, 311.49°)
OKLaboklab(39.97% 0.0668 -0.0994)
OKLCHoklch(39.97% 0.12 303.9)
XYZxyz(8.5959, 5.7762, 19.3971)
Luminance0.0578 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56337B #587B33
analogous
#33347B #56337B #7A337B
triadic
#56337B #7B5633 #337B56
tetradic
#56337B #7B3334 #587B33 #337B7A
square
#56337B #7B3334 #587B33 #337B7A
split-complementary
#56337B #7B7A33 #347B33
monochromatic
#1A0F24 #382150 #56337B #7445A6 #9368C0

Accessibility & contrast

On white

9.74
#56337B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#56337B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #56337B
9.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56337B#FFFFFF#000000##FFFFFF
##56337B1.009.742.169.74
#FFFFFF9.741.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#17437D
Deuteranopia (green-blind)
#244479
Tritanopia (blue-blind)
#4F4152
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #56337b;
/* rgb */ color: rgb(86, 51, 123);
/* oklch */ color: oklch(40.0% 0.120 303.9);
Tailwind
colors: {
  custom: {
    50: '#886ca2',
    500: '#56337b',
    950: '#000000',
  },
}
SCSS
$custom: #56337b;
$custom-light: #886ca2;
$custom-dark: #000000;
JSON
{
  "hex": "#56337b",
  "rgb": {
    "r": 86,
    "g": 51,
    "b": 123
  },
  "hsl": {
    "h": 269.167,
    "s": 41.379,
    "l": 34.118
  },
  "oklch": {
    "l": 0.39972,
    "c": 0.11977,
    "h": 303.9
  },
  "luminance": 0.05776
}

Semantic roles & 50–950 ramp

primary
#56337B
secondary
#86A862
accent
#D15796
background
#F8F6FA
surface
#F0EBF3
border
#CBC6CD
text
#0C070F
muted
#7D7A7F

Preview Lab

Preview with #56337B

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

Preview Lab → · Contrast checker → · Palette generator →

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