#56288E#56288E

#56288E is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.8% C 0.159 H 299.7°. Best body text is #FFFFFF at 10.05:1 contrast (WCAG AA passes).

Color values

HEX#56288E
RGBrgb(86, 40, 142)
HSLhsl(267, 56%, 36%)
HSVhsv(267, 72%, 56%)
CMYKcmyk(39.4%, 71.8%, 0%, 44.3%)
CIE-LABlab(27.98, 42.30, -48.48)
CIE-LCHlch(27.98, 64.34, 311.11°)
OKLaboklab(39.78% 0.0789 -0.1383)
OKLCHoklch(39.78% 0.159 299.7)
XYZxyz(9.4778, 5.4489, 26.1383)
Luminance0.0545 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56288E #608E28
analogous
#282D8E #56288E #89288E
triadic
#56288E #8E5628 #288E56
tetradic
#56288E #8E282D #608E28 #288E89
square
#56288E #8E282D #608E28 #288E89
split-complementary
#56288E #8E8928 #2D8E28
monochromatic
#1C0D2F #391B5E #56288E #7335BE #935FD2

Accessibility & contrast

On white

10.05
#56288E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#56288E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #56288E
10.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56288E#FFFFFF#000000##FFFFFF
##56288E1.0010.052.0910.05
#FFFFFF10.051.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004291
Deuteranopia (green-blind)
#00418C
Tritanopia (blue-blind)
#494158
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #56288e;
/* rgb */ color: rgb(86, 40, 142);
/* oklch */ color: oklch(39.8% 0.159 299.7);
Tailwind
colors: {
  custom: {
    50: '#8b66b0',
    500: '#56288e',
    950: '#000000',
  },
}
SCSS
$custom: #56288e;
$custom-light: #8b66b0;
$custom-dark: #000000;
JSON
{
  "hex": "#56288e",
  "rgb": {
    "r": 86,
    "g": 40,
    "b": 142
  },
  "hsl": {
    "h": 267.059,
    "s": 56.044,
    "l": 35.686
  },
  "oklch": {
    "l": 0.39785,
    "c": 0.15922,
    "h": 299.7
  },
  "luminance": 0.05449
}

Semantic roles & 50–950 ramp

primary
#56288E
secondary
#8DB75B
accent
#DF489B
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #56288E

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

Preview Lab → · Contrast checker → · Palette generator →

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