#56397E#56397E

#56397E is a dark, moderate violet. Relative luminance 0.064; OKLCH L 41.2% C 0.114 H 300.9°. Best body text is #FFFFFF at 9.20:1 contrast (WCAG AA passes).

Color values

HEX#56397E
RGBrgb(86, 57, 126)
HSLhsl(265, 38%, 36%)
HSVhsv(265, 55%, 49%)
CMYKcmyk(31.7%, 54.8%, 0%, 50.6%)
CIE-LABlab(30.43, 28.34, -34.57)
CIE-LCHlch(30.43, 44.70, 309.34°)
OKLaboklab(41.2% 0.0585 -0.0975)
OKLCHoklch(41.2% 0.114 300.9)
XYZxyz(9.0659, 6.4110, 20.4944)
Luminance0.0641 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56397E #617E39
analogous
#393E7E #56397E #78397E
triadic
#56397E #7E5639 #397E56
tetradic
#56397E #7E393E #617E39 #397E78
square
#56397E #7E393E #617E39 #397E78
split-complementary
#56397E #7E7839 #3E7E39
monochromatic
#1C132A #392654 #56397E #734CA8 #9372BF

Accessibility & contrast

On white

9.20
#56397E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#56397E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #56397E
9.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56397E#FFFFFF#000000##FFFFFF
##56397E1.009.202.289.20
#FFFFFF9.201.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#204780
Deuteranopia (green-blind)
#29477C
Tritanopia (blue-blind)
#4E4656
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #56397e;
/* rgb */ color: rgb(86, 57, 126);
/* oklch */ color: oklch(41.2% 0.114 300.9);
Tailwind
colors: {
  custom: {
    50: '#8870a4',
    500: '#56397e',
    950: '#000000',
  },
}
SCSS
$custom: #56397e;
$custom-light: #8870a4;
$custom-dark: #000000;
JSON
{
  "hex": "#56397e",
  "rgb": {
    "r": 86,
    "g": 57,
    "b": 126
  },
  "hsl": {
    "h": 265.217,
    "s": 37.705,
    "l": 35.882
  },
  "oklch": {
    "l": 0.41203,
    "c": 0.11368,
    "h": 300.9
  },
  "luminance": 0.06411
}

Semantic roles & 50–950 ramp

primary
#56397E
secondary
#8EA86A
accent
#CE5A9D
background
#F8F6FA
surface
#F0ECF4
border
#CBC7CE
text
#0C070F
muted
#7D7A7F

Preview Lab

Preview with #56397E

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

Preview Lab → · Contrast checker → · Palette generator →

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