#56397F#56397F

#56397F is a dark, moderate violet. Relative luminance 0.064; OKLCH L 41.3% C 0.115 H 300.6°. Best body text is #FFFFFF at 9.18:1 contrast (WCAG AA passes).

Color values

HEX#56397F
RGBrgb(86, 57, 127)
HSLhsl(265, 38%, 36%)
HSVhsv(265, 55%, 50%)
CMYKcmyk(32.3%, 55.1%, 0%, 50.2%)
CIE-LABlab(30.49, 28.61, -35.10)
CIE-LCHlch(30.49, 45.28, 309.19°)
OKLaboklab(41.27% 0.0585 -0.099)
OKLCHoklch(41.27% 0.115 300.6)
XYZxyz(9.1307, 6.4369, 20.8360)
Luminance0.0644 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56397F #627F39
analogous
#393F7F #56397F #79397F
triadic
#56397F #7F5639 #397F56
tetradic
#56397F #7F393F #627F39 #397F79
square
#56397F #7F393F #627F39 #397F79
split-complementary
#56397F #7F7939 #3F7F39
monochromatic
#1D132B #392655 #56397F #734CA9 #9372C0

Accessibility & contrast

On white

9.18
#56397F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#56397F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #56397F
9.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56397F#FFFFFF#000000##FFFFFF
##56397F1.009.182.299.18
#FFFFFF9.181.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F4781
Deuteranopia (green-blind)
#28477D
Tritanopia (blue-blind)
#4E4656
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #56397f;
/* rgb */ color: rgb(86, 57, 127);
/* oklch */ color: oklch(41.3% 0.115 300.6);
Tailwind
colors: {
  custom: {
    50: '#8870a4',
    500: '#56397f',
    950: '#000000',
  },
}
SCSS
$custom: #56397f;
$custom-light: #8870a4;
$custom-dark: #000000;
JSON
{
  "hex": "#56397f",
  "rgb": {
    "r": 86,
    "g": 57,
    "b": 127
  },
  "hsl": {
    "h": 264.857,
    "s": 38.043,
    "l": 36.078
  },
  "oklch": {
    "l": 0.41269,
    "c": 0.11504,
    "h": 300.6
  },
  "luminance": 0.06437
}

Semantic roles & 50–950 ramp

primary
#56397F
secondary
#8FA96B
accent
#CE5A9E
background
#F8F6FA
surface
#F0ECF4
border
#CBC7CE
text
#0C070F
muted
#7D7A7F

Preview Lab

Preview with #56397F

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

Preview Lab → · Contrast checker → · Palette generator →

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