#56287E#56287E

#56287E is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.5% C 0.141 H 305.3°. Best body text is #FFFFFF at 10.50:1 contrast (WCAG AA passes).

Color values

HEX#56287E
RGBrgb(86, 40, 126)
HSLhsl(272, 52%, 33%)
HSVhsv(272, 68%, 49%)
CMYKcmyk(31.7%, 68.3%, 0%, 50.6%)
CIE-LABlab(26.74, 38.14, -40.49)
CIE-LCHlch(26.74, 55.63, 313.29°)
OKLaboklab(38.51% 0.0812 -0.1148)
OKLCHoklch(38.51% 0.141 305.3)
XYZxyz(8.3616, 5.0024, 20.2597)
Luminance0.0500 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56287E #507E28
analogous
#2B287E #56287E #7E287B
triadic
#56287E #7E5628 #287E56
tetradic
#56287E #7E2B28 #507E28 #287B7E
square
#56287E #7E2B28 #507E28 #287B7E
split-complementary
#56287E #7B7E28 #287E2B
monochromatic
#170B21 #361950 #56287E #7637AC #9457CA

Accessibility & contrast

On white

10.50
#56287E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #56287E
10.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56287E#FFFFFF#000000##FFFFFF
##56287E1.0010.502.0010.50
#FFFFFF10.501.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E81
Deuteranopia (green-blind)
#0F3F7C
Tritanopia (blue-blind)
#4F3B4F
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #56287e;
/* rgb */ color: rgb(86, 40, 126);
/* oklch */ color: oklch(38.5% 0.141 305.3);
Tailwind
colors: {
  custom: {
    50: '#8965a4',
    500: '#56287e',
    950: '#000000',
  },
}
SCSS
$custom: #56287e;
$custom-light: #8965a4;
$custom-dark: #000000;
JSON
{
  "hex": "#56287e",
  "rgb": {
    "r": 86,
    "g": 40,
    "b": 126
  },
  "hsl": {
    "h": 272.093,
    "s": 51.807,
    "l": 32.549
  },
  "oklch": {
    "l": 0.38512,
    "c": 0.1406,
    "h": 305.3
  },
  "luminance": 0.05002
}

Semantic roles & 50–950 ramp

primary
#56287E
secondary
#7EAF53
accent
#DB4D8F
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C060F
muted
#7D7A7F

Preview Lab

Preview with #56287E

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

Preview Lab → · Contrast checker → · Palette generator →

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