#56288A#56288A

#56288A is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.5% C 0.155 H 301.0°. Best body text is #FFFFFF at 10.16:1 contrast (WCAG AA passes).

Color values

HEX#56288A
RGBrgb(86, 40, 138)
HSLhsl(268, 55%, 35%)
HSVhsv(268, 71%, 54%)
CMYKcmyk(37.7%, 71%, 0%, 45.9%)
CIE-LABlab(27.66, 41.25, -46.52)
CIE-LCHlch(27.66, 62.17, 311.57°)
OKLaboklab(39.46% 0.0796 -0.1325)
OKLCHoklch(39.46% 0.155 301)
XYZxyz(9.1829, 5.3309, 24.5850)
Luminance0.0533 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56288A #5C8A28
analogous
#282B8A #56288A #87288A
triadic
#56288A #8A5628 #288A56
tetradic
#56288A #8A282B #5C8A28 #288A87
square
#56288A #8A282B #5C8A28 #288A87
split-complementary
#56288A #8A8728 #2B8A28
monochromatic
#1B0C2B #381A5B #56288A #7436B9 #935DD0

Accessibility & contrast

On white

10.16
#56288A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#56288A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #56288A
10.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56288A#FFFFFF#000000##FFFFFF
##56288A1.0010.162.0710.16
#FFFFFF10.161.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00418D
Deuteranopia (green-blind)
#004188
Tritanopia (blue-blind)
#4B3F56
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #56288a;
/* rgb */ color: rgb(86, 40, 138);
/* oklch */ color: oklch(39.5% 0.155 301.0);
Tailwind
colors: {
  custom: {
    50: '#8a66ad',
    500: '#56288a',
    950: '#000000',
  },
}
SCSS
$custom: #56288a;
$custom-light: #8a66ad;
$custom-dark: #000000;
JSON
{
  "hex": "#56288a",
  "rgb": {
    "r": 86,
    "g": 40,
    "b": 138
  },
  "hsl": {
    "h": 268.163,
    "s": 55.056,
    "l": 34.902
  },
  "oklch": {
    "l": 0.39457,
    "c": 0.15458,
    "h": 301
  },
  "luminance": 0.05331
}

Semantic roles & 50–950 ramp

primary
#56288A
secondary
#8AB559
accent
#DE4998
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #56288A

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

Preview Lab → · Contrast checker → · Palette generator →

#56288A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva