#56337E#56337E

#56337E is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.2% C 0.124 H 302.7°. Best body text is #FFFFFF at 9.68:1 contrast (WCAG AA passes).

Color values

HEX#56337E
RGBrgb(86, 51, 126)
HSLhsl(268, 42%, 35%)
HSVhsv(268, 60%, 49%)
CMYKcmyk(31.7%, 59.5%, 0%, 50.6%)
CIE-LABlab(29.04, 31.96, -36.79)
CIE-LCHlch(29.04, 48.73, 310.97°)
OKLaboklab(40.18% 0.0669 -0.104)
OKLCHoklch(40.18% 0.124 302.7)
XYZxyz(8.7866, 5.8524, 20.4013)
Luminance0.0585 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56337E #5B7E33
analogous
#33367E #56337E #7C337E
triadic
#56337E #7E5633 #337E56
tetradic
#56337E #7E3336 #5B7E33 #337E7C
square
#56337E #7E3336 #5B7E33 #337E7C
split-complementary
#56337E #7E7C33 #367E33
monochromatic
#1B1027 #382152 #56337E #7445AA #9369C2

Accessibility & contrast

On white

9.68
#56337E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#56337E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #56337E
9.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56337E#FFFFFF#000000##FFFFFF
##56337E1.009.682.179.68
#FFFFFF9.681.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#124480
Deuteranopia (green-blind)
#21447C
Tritanopia (blue-blind)
#4E4253
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #56337e;
/* rgb */ color: rgb(86, 51, 126);
/* oklch */ color: oklch(40.2% 0.124 302.7);
Tailwind
colors: {
  custom: {
    50: '#886ca4',
    500: '#56337e',
    950: '#000000',
  },
}
SCSS
$custom: #56337e;
$custom-light: #886ca4;
$custom-dark: #000000;
JSON
{
  "hex": "#56337e",
  "rgb": {
    "r": 86,
    "g": 51,
    "b": 126
  },
  "hsl": {
    "h": 268,
    "s": 42.373,
    "l": 34.706
  },
  "oklch": {
    "l": 0.40179,
    "c": 0.12364,
    "h": 302.7
  },
  "luminance": 0.05852
}

Semantic roles & 50–950 ramp

primary
#56337E
secondary
#89AA63
accent
#D25698
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C070F
muted
#7D7A7F

Preview Lab

Preview with #56337E

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

Preview Lab → · Contrast checker → · Palette generator →

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