#56287D#56287D

#56287D is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.4% C 0.139 H 305.7°. Best body text is #FFFFFF at 10.52:1 contrast (WCAG AA passes).

Color values

HEX#56287D
RGBrgb(86, 40, 125)
HSLhsl(272, 52%, 32%)
HSVhsv(272, 68%, 49%)
CMYKcmyk(31.2%, 68%, 0%, 51%)
CIE-LABlab(26.67, 37.89, -39.97)
CIE-LCHlch(26.67, 55.08, 313.47°)
OKLaboklab(38.44% 0.0813 -0.1133)
OKLCHoklch(38.44% 0.139 305.7)
XYZxyz(8.2974, 4.9767, 19.9215)
Luminance0.0498 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56287D #4F7D28
analogous
#2C287D #56287D #7D2879
triadic
#56287D #7D5628 #287D56
tetradic
#56287D #7D2C28 #4F7D28 #28797D
square
#56287D #7D2C28 #4F7D28 #28797D
split-complementary
#56287D #797D28 #287D2C
monochromatic
#160A20 #36194F #56287D #7637AB #9456C9

Accessibility & contrast

On white

10.52
#56287D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#56287D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #56287D
10.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56287D#FFFFFF#000000##FFFFFF
##56287D1.0010.522.0010.52
#FFFFFF10.521.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E80
Deuteranopia (green-blind)
#113F7B
Tritanopia (blue-blind)
#4F3A4F
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #56287d;
/* rgb */ color: rgb(86, 40, 125);
/* oklch */ color: oklch(38.4% 0.139 305.7);
Tailwind
colors: {
  custom: {
    50: '#8965a3',
    500: '#56287d',
    950: '#000000',
  },
}
SCSS
$custom: #56287d;
$custom-light: #8965a3;
$custom-dark: #000000;
JSON
{
  "hex": "#56287d",
  "rgb": {
    "r": 86,
    "g": 40,
    "b": 125
  },
  "hsl": {
    "h": 272.471,
    "s": 51.515,
    "l": 32.353
  },
  "oklch": {
    "l": 0.38436,
    "c": 0.13943,
    "h": 305.7
  },
  "luminance": 0.04977
}

Semantic roles & 50–950 ramp

primary
#56287D
secondary
#7DAE53
accent
#DB4D8E
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C060F
muted
#7D7A7F

Preview Lab

Preview with #56287D

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

Preview Lab → · Contrast checker → · Palette generator →

#56287D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva