#56286E#56286E

#56286E is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.4% C 0.122 H 312.3°. Best body text is #FFFFFF at 10.91:1 contrast (WCAG AA passes).

Color values

HEX#56286E
RGBrgb(86, 40, 110)
HSLhsl(279, 47%, 29%)
HSVhsv(279, 64%, 43%)
CMYKcmyk(21.8%, 63.6%, 0%, 56.9%)
CIE-LABlab(25.63, 34.16, -32.09)
CIE-LCHlch(25.63, 46.87, 316.79°)
OKLaboklab(37.35% 0.082 -0.0902)
OKLCHoklch(37.35% 0.122 312.3)
XYZxyz(7.4105, 4.6220, 15.2506)
Luminance0.0462 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56286E #406E28
analogous
#33286E #56286E #6E2863
triadic
#56286E #6E5628 #286E56
tetradic
#56286E #6E3328 #406E28 #28636E
square
#56286E #6E3328 #406E28 #28636E
split-complementary
#56286E #636E28 #286E33
monochromatic
#120816 #331841 #56286E #79389B #9A51C0

Accessibility & contrast

On white

10.91
#56286E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#56286E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #56286E
10.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56286E#FFFFFF#000000##FFFFFF
##56286E1.0010.911.9210.91
#FFFFFF10.911.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E3A70
Deuteranopia (green-blind)
#233E6C
Tritanopia (blue-blind)
#533547
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #56286e;
/* rgb */ color: rgb(86, 40, 110);
/* oklch */ color: oklch(37.4% 0.122 312.3);
Tailwind
colors: {
  custom: {
    50: '#886598',
    500: '#56286e',
    950: '#000000',
  },
}
SCSS
$custom: #56286e;
$custom-light: #886598;
$custom-dark: #000000;
JSON
{
  "hex": "#56286e",
  "rgb": {
    "r": 86,
    "g": 40,
    "b": 110
  },
  "hsl": {
    "h": 279.429,
    "s": 46.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.37352,
    "c": 0.12188,
    "h": 312.3
  },
  "luminance": 0.04622
}

Semantic roles & 50–950 ramp

primary
#56286E
secondary
#6CA051
accent
#D6517F
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0C060D
muted
#7D7A7E

Preview Lab

Preview with #56286E

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

Preview Lab → · Contrast checker → · Palette generator →

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