#56228A#56228A

#56228A is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.7% C 0.162 H 302.0°. Best body text is #FFFFFF at 10.55:1 contrast (WCAG AA passes).

Color values

HEX#56228A
RGBrgb(86, 34, 138)
HSLhsl(270, 60%, 34%)
HSVhsv(270, 75%, 54%)
CMYKcmyk(37.7%, 75.4%, 0%, 45.9%)
CIE-LABlab(26.61, 44.19, -48.21)
CIE-LCHlch(26.61, 65.40, 312.50°)
OKLaboklab(38.72% 0.0859 -0.1375)
OKLCHoklch(38.72% 0.162 302)
XYZxyz(8.9961, 4.9574, 24.5228)
Luminance0.0496 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56228A #568A22
analogous
#22228A #56228A #8A228A
triadic
#56228A #8A5622 #228A56
tetradic
#56228A #8A2222 #568A22 #228A8A
square
#56228A #8A2222 #568A22 #228A8A
split-complementary
#56228A #8A8A22 #228A22
monochromatic
#190A28 #371659 #56228A #752EBB #9352D4

Accessibility & contrast

On white

10.55
#56228A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#56228A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #56228A
10.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56228A#FFFFFF#000000##FFFFFF
##56228A1.0010.551.9910.55
#FFFFFF10.551.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8D
Deuteranopia (green-blind)
#003E88
Tritanopia (blue-blind)
#4B3C54
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #56228a;
/* rgb */ color: rgb(86, 34, 138);
/* oklch */ color: oklch(38.7% 0.162 302.0);
Tailwind
colors: {
  custom: {
    50: '#8b62ad',
    500: '#56228a',
    950: '#000000',
  },
}
SCSS
$custom: #56228a;
$custom-light: #8b62ad;
$custom-dark: #000000;
JSON
{
  "hex": "#56228a",
  "rgb": {
    "r": 86,
    "g": 34,
    "b": 138
  },
  "hsl": {
    "h": 270,
    "s": 60.465,
    "l": 33.725
  },
  "oklch": {
    "l": 0.38716,
    "c": 0.16209,
    "h": 302
  },
  "luminance": 0.04957
}

Semantic roles & 50–950 ramp

primary
#56228A
secondary
#84B850
accent
#E44494
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0510
muted
#7D7A7F

Preview Lab

Preview with #56228A

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

Preview Lab → · Contrast checker → · Palette generator →

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