#56227A#56227A

#56227A is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.4% C 0.144 H 307.9°. Best body text is #FFFFFF at 11.02:1 contrast (WCAG AA passes).

Color values

HEX#56227A
RGBrgb(86, 34, 122)
HSLhsl(275, 56%, 31%)
HSVhsv(275, 72%, 48%)
CMYKcmyk(29.5%, 72.1%, 0%, 52.2%)
CIE-LABlab(25.34, 40.20, -40.21)
CIE-LCHlch(25.34, 56.86, 314.99°)
OKLaboklab(37.42% 0.0887 -0.114)
OKLCHoklch(37.42% 0.144 307.9)
XYZxyz(7.9219, 4.5277, 18.8652)
Luminance0.0453 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56227A #467A22
analogous
#2A227A #56227A #7A2272
triadic
#56227A #7A5622 #227A56
tetradic
#56227A #7A2A22 #467A22 #22727A
square
#56227A #7A2A22 #467A22 #22727A
split-complementary
#56227A #727A22 #227A2A
monochromatic
#13071A #34154A #56227A #782FAA #974ACD

Accessibility & contrast

On white

11.02
#56227A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#56227A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #56227A
11.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56227A#FFFFFF#000000##FFFFFF
##56227A1.0011.021.9111.02
#FFFFFF11.021.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A7D
Deuteranopia (green-blind)
#0C3D78
Tritanopia (blue-blind)
#50364B
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #56227a;
/* rgb */ color: rgb(86, 34, 122);
/* oklch */ color: oklch(37.4% 0.144 307.9);
Tailwind
colors: {
  custom: {
    50: '#8962a1',
    500: '#56227a',
    950: '#000000',
  },
}
SCSS
$custom: #56227a;
$custom-light: #8962a1;
$custom-dark: #000000;
JSON
{
  "hex": "#56227a",
  "rgb": {
    "r": 86,
    "g": 34,
    "b": 122
  },
  "hsl": {
    "h": 275.455,
    "s": 56.41,
    "l": 30.588
  },
  "oklch": {
    "l": 0.37416,
    "c": 0.14444,
    "h": 307.9
  },
  "luminance": 0.04528
}

Semantic roles & 50–950 ramp

primary
#56227A
secondary
#73AD4B
accent
#E04886
background
#F8F5FA
surface
#F0EAF3
border
#CBC6CD
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #56227A

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

Preview Lab → · Contrast checker → · Palette generator →

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