#56288B#56288B

#56288B is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.5% C 0.156 H 300.7°. Best body text is #FFFFFF at 10.14:1 contrast (WCAG AA passes).

Color values

HEX#56288B
RGBrgb(86, 40, 139)
HSLhsl(268, 55%, 35%)
HSVhsv(268, 71%, 55%)
CMYKcmyk(38.1%, 71.2%, 0%, 45.5%)
CIE-LABlab(27.74, 41.51, -47.01)
CIE-LCHlch(27.74, 62.71, 311.45°)
OKLaboklab(39.54% 0.0794 -0.134)
OKLCHoklch(39.54% 0.156 300.7)
XYZxyz(9.2556, 5.3600, 24.9681)
Luminance0.0536 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56288B #5D8B28
analogous
#282B8B #56288B #87288B
triadic
#56288B #8B5628 #288B56
tetradic
#56288B #8B282B #5D8B28 #288B87
square
#56288B #8B282B #5D8B28 #288B87
split-complementary
#56288B #8B8728 #2B8B28
monochromatic
#1B0D2C #391A5B #56288B #7336BB #935DD0

Accessibility & contrast

On white

10.14
#56288B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #56288B
10.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56288B#FFFFFF#000000##FFFFFF
##56288B1.0010.142.0710.14
#FFFFFF10.141.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00418E
Deuteranopia (green-blind)
#004189
Tritanopia (blue-blind)
#4A4056
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #56288b;
/* rgb */ color: rgb(86, 40, 139);
/* oklch */ color: oklch(39.5% 0.156 300.7);
Tailwind
colors: {
  custom: {
    50: '#8a66ae',
    500: '#56288b',
    950: '#000000',
  },
}
SCSS
$custom: #56288b;
$custom-light: #8a66ae;
$custom-dark: #000000;
JSON
{
  "hex": "#56288b",
  "rgb": {
    "r": 86,
    "g": 40,
    "b": 139
  },
  "hsl": {
    "h": 267.879,
    "s": 55.307,
    "l": 35.098
  },
  "oklch": {
    "l": 0.39539,
    "c": 0.15575,
    "h": 300.7
  },
  "luminance": 0.0536
}

Semantic roles & 50–950 ramp

primary
#56288B
secondary
#8BB659
accent
#DF4999
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #56288B

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

Preview Lab → · Contrast checker → · Palette generator →

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