#56287C#56287C

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

Color values

HEX#56287C
RGBrgb(86, 40, 124)
HSLhsl(273, 51%, 32%)
HSVhsv(273, 68%, 49%)
CMYKcmyk(30.6%, 67.7%, 0%, 51.4%)
CIE-LABlab(26.60, 37.64, -39.46)
CIE-LCHlch(26.60, 54.53, 313.64°)
OKLaboklab(38.36% 0.0814 -0.1118)
OKLCHoklch(38.36% 0.138 306)
XYZxyz(8.2338, 4.9513, 19.5868)
Luminance0.0495 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56287C #4E7C28
analogous
#2C287C #56287C #7C2878
triadic
#56287C #7C5628 #287C56
tetradic
#56287C #7C2C28 #4E7C28 #28787C
square
#56287C #7C2C28 #4E7C28 #28787C
split-complementary
#56287C #787C28 #287C2C
monochromatic
#160A1F #36194E #56287C #7637AA #9556C8

Accessibility & contrast

On white

10.55
#56287C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#56287C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #56287C
10.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56287C#FFFFFF#000000##FFFFFF
##56287C1.0010.551.9910.55
#FFFFFF10.551.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D7F
Deuteranopia (green-blind)
#133F7A
Tritanopia (blue-blind)
#4F3A4E
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #56287c;
/* rgb */ color: rgb(86, 40, 124);
/* oklch */ color: oklch(38.4% 0.138 306.0);
Tailwind
colors: {
  custom: {
    50: '#8965a2',
    500: '#56287c',
    950: '#000000',
  },
}
SCSS
$custom: #56287c;
$custom-light: #8965a2;
$custom-dark: #000000;
JSON
{
  "hex": "#56287c",
  "rgb": {
    "r": 86,
    "g": 40,
    "b": 124
  },
  "hsl": {
    "h": 272.857,
    "s": 51.22,
    "l": 32.157
  },
  "oklch": {
    "l": 0.3836,
    "c": 0.13826,
    "h": 306
  },
  "luminance": 0.04951
}

Semantic roles & 50–950 ramp

primary
#56287C
secondary
#7CAD52
accent
#DB4D8D
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C060F
muted
#7D7A7F

Preview Lab

Preview with #56287C

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

Preview Lab → · Contrast checker → · Palette generator →

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