#56228B#56228B

#56228B is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.8% C 0.163 H 301.7°. Best body text is #FFFFFF at 10.51:1 contrast (WCAG AA passes).

Color values

HEX#56228B
RGBrgb(86, 34, 139)
HSLhsl(270, 61%, 34%)
HSVhsv(270, 76%, 55%)
CMYKcmyk(38.1%, 75.5%, 0%, 45.5%)
CIE-LABlab(26.70, 44.44, -48.70)
CIE-LCHlch(26.70, 65.93, 312.38°)
OKLaboklab(38.8% 0.0856 -0.1389)
OKLCHoklch(38.8% 0.163 301.7)
XYZxyz(9.0689, 4.9865, 24.9058)
Luminance0.0499 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56228B #578B22
analogous
#22238B #56228B #8B228B
triadic
#56228B #8B5622 #228B56
tetradic
#56228B #8B2223 #578B22 #228B8B
square
#56228B #8B2223 #578B22 #228B8B
split-complementary
#56228B #8B8B22 #238B22
monochromatic
#190A29 #38165A #56228B #742EBC #9353D5

Accessibility & contrast

On white

10.51
#56228B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#56228B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #56228B
10.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56228B#FFFFFF#000000##FFFFFF
##56228B1.0010.512.0010.51
#FFFFFF10.511.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8E
Deuteranopia (green-blind)
#003F89
Tritanopia (blue-blind)
#4B3C55
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #56228b;
/* rgb */ color: rgb(86, 34, 139);
/* oklch */ color: oklch(38.8% 0.163 301.7);
Tailwind
colors: {
  custom: {
    50: '#8b62ae',
    500: '#56228b',
    950: '#000000',
  },
}
SCSS
$custom: #56228b;
$custom-light: #8b62ae;
$custom-dark: #000000;
JSON
{
  "hex": "#56228b",
  "rgb": {
    "r": 86,
    "g": 34,
    "b": 139
  },
  "hsl": {
    "h": 269.714,
    "s": 60.694,
    "l": 33.922
  },
  "oklch": {
    "l": 0.388,
    "c": 0.16319,
    "h": 301.7
  },
  "luminance": 0.04987
}

Semantic roles & 50–950 ramp

primary
#56228B
secondary
#85B850
accent
#E44495
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0510
muted
#7D7A7F

Preview Lab

Preview with #56228B

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

Preview Lab → · Contrast checker → · Palette generator →

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