#56278B#56278B

#56278B is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.4% C 0.157 H 300.8°. Best body text is #FFFFFF at 10.20:1 contrast (WCAG AA passes).

Color values

HEX#56278B
RGBrgb(86, 39, 139)
HSLhsl(268, 56%, 35%)
HSVhsv(268, 72%, 55%)
CMYKcmyk(38.1%, 71.9%, 0%, 45.5%)
CIE-LABlab(27.56, 42.02, -47.30)
CIE-LCHlch(27.56, 63.27, 311.62°)
OKLaboklab(39.41% 0.0805 -0.1348)
OKLCHoklch(39.41% 0.157 300.8)
XYZxyz(9.2223, 5.2935, 24.9570)
Luminance0.0529 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56278B #5C8B27
analogous
#272A8B #56278B #88278B
triadic
#56278B #8B5627 #278B56
tetradic
#56278B #8B272A #5C8B27 #278B88
square
#56278B #8B272A #5C8B27 #278B88
split-complementary
#56278B #8B8827 #2A8B27
monochromatic
#1B0C2B #381A5B #56278B #7434BB #935BD1

Accessibility & contrast

On white

10.20
#56278B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#56278B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #56278B
10.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56278B#FFFFFF#000000##FFFFFF
##56278B1.0010.202.0610.20
#FFFFFF10.201.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.201.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #56278b;
/* rgb */ color: rgb(86, 39, 139);
/* oklch */ color: oklch(39.4% 0.157 300.8);
Tailwind
colors: {
  custom: {
    50: '#8a65ae',
    500: '#56278b',
    950: '#000000',
  },
}
SCSS
$custom: #56278b;
$custom-light: #8a65ae;
$custom-dark: #000000;
JSON
{
  "hex": "#56278b",
  "rgb": {
    "r": 86,
    "g": 39,
    "b": 139
  },
  "hsl": {
    "h": 268.2,
    "s": 56.18,
    "l": 34.902
  },
  "oklch": {
    "l": 0.39409,
    "c": 0.15704,
    "h": 300.8
  },
  "luminance": 0.05294
}

Semantic roles & 50–950 ramp

primary
#56278B
secondary
#8AB658
accent
#DF4898
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #56278B

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

Preview Lab → · Contrast checker → · Palette generator →

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