#56286F#56286F

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

Color values

HEX#56286F
RGBrgb(86, 40, 111)
HSLhsl(279, 47%, 30%)
HSVhsv(279, 64%, 44%)
CMYKcmyk(22.5%, 64%, 0%, 56.5%)
CIE-LABlab(25.70, 34.41, -32.63)
CIE-LCHlch(25.70, 47.42, 316.52°)
OKLaboklab(37.42% 0.082 -0.0917)
OKLCHoklch(37.42% 0.123 311.8)
XYZxyz(7.4653, 4.6439, 15.5389)
Luminance0.0464 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56286F #416F28
analogous
#32286F #56286F #6F2865
triadic
#56286F #6F5628 #286F56
tetradic
#56286F #6F3228 #416F28 #28656F
square
#56286F #6F3228 #416F28 #28656F
split-complementary
#56286F #656F28 #286F32
monochromatic
#110816 #331842 #56286F #79389C #9951C0

Accessibility & contrast

On white

10.89
#56286F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#56286F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #56286F
10.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56286F#FFFFFF#000000##FFFFFF
##56286F1.0010.891.9310.89
#FFFFFF10.891.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D3B71
Deuteranopia (green-blind)
#223E6D
Tritanopia (blue-blind)
#533547
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #56286f;
/* rgb */ color: rgb(86, 40, 111);
/* oklch */ color: oklch(37.4% 0.123 311.8);
Tailwind
colors: {
  custom: {
    50: '#886599',
    500: '#56286f',
    950: '#000000',
  },
}
SCSS
$custom: #56286f;
$custom-light: #886599;
$custom-dark: #000000;
JSON
{
  "hex": "#56286f",
  "rgb": {
    "r": 86,
    "g": 40,
    "b": 111
  },
  "hsl": {
    "h": 278.873,
    "s": 47.02,
    "l": 29.608
  },
  "oklch": {
    "l": 0.37421,
    "c": 0.12304,
    "h": 311.8
  },
  "luminance": 0.04644
}

Semantic roles & 50–950 ramp

primary
#56286F
secondary
#6EA151
accent
#D75180
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0C060E
muted
#7D7A7E

Preview Lab

Preview with #56286F

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

Preview Lab → · Contrast checker → · Palette generator →

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