#56397C#56397C

#56397C is a dark, moderate violet. Relative luminance 0.064; OKLCH L 41.1% C 0.111 H 301.7°. Best body text is #FFFFFF at 9.24:1 contrast (WCAG AA passes).

Color values

HEX#56397C
RGBrgb(86, 57, 124)
HSLhsl(266, 37%, 35%)
HSVhsv(266, 54%, 49%)
CMYKcmyk(30.6%, 54%, 0%, 51.4%)
CIE-LABlab(30.30, 27.79, -33.52)
CIE-LCHlch(30.30, 43.54, 309.66°)
OKLaboklab(41.07% 0.0583 -0.0944)
OKLCHoklch(41.07% 0.111 301.7)
XYZxyz(8.9381, 6.3599, 19.8216)
Luminance0.0636 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56397C #5F7C39
analogous
#393D7C #56397C #77397C
triadic
#56397C #7C5639 #397C56
tetradic
#56397C #7C393D #5F7C39 #397C77
square
#56397C #7C393D #5F7C39 #397C77
split-complementary
#56397C #7C7739 #3D7C39
monochromatic
#1C1228 #392652 #56397C #734CA6 #9371BE

Accessibility & contrast

On white

9.24
#56397C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#56397C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #56397C
9.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56397C#FFFFFF#000000##FFFFFF
##56397C1.009.242.279.24
#FFFFFF9.241.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#22477E
Deuteranopia (green-blind)
#2A477A
Tritanopia (blue-blind)
#4F4655
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #56397c;
/* rgb */ color: rgb(86, 57, 124);
/* oklch */ color: oklch(41.1% 0.111 301.7);
Tailwind
colors: {
  custom: {
    50: '#8870a2',
    500: '#56397c',
    950: '#000000',
  },
}
SCSS
$custom: #56397c;
$custom-light: #8870a2;
$custom-dark: #000000;
JSON
{
  "hex": "#56397c",
  "rgb": {
    "r": 86,
    "g": 57,
    "b": 124
  },
  "hsl": {
    "h": 265.97,
    "s": 37.017,
    "l": 35.49
  },
  "oklch": {
    "l": 0.41071,
    "c": 0.11097,
    "h": 301.7
  },
  "luminance": 0.0636
}

Semantic roles & 50–950 ramp

primary
#56397C
secondary
#8DA76A
accent
#CD5B9C
background
#F8F6FA
surface
#F0ECF3
border
#CBC7CD
text
#0B070F
muted
#7C7A7F

Preview Lab

Preview with #56397C

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

Preview Lab → · Contrast checker → · Palette generator →

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