#56227C#56227C

#56227C is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.6% C 0.147 H 307.1°. Best body text is #FFFFFF at 10.96:1 contrast (WCAG AA passes).

Color values

HEX#56227C
RGBrgb(86, 34, 124)
HSLhsl(275, 57%, 31%)
HSVhsv(275, 73%, 49%)
CMYKcmyk(30.6%, 72.6%, 0%, 51.4%)
CIE-LABlab(25.50, 40.69, -41.24)
CIE-LCHlch(25.50, 57.93, 314.62°)
OKLaboklab(37.57% 0.0885 -0.117)
OKLCHoklch(37.57% 0.147 307.1)
XYZxyz(8.0471, 4.5778, 19.5246)
Luminance0.0458 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56227C #487C22
analogous
#29227C #56227C #7C2275
triadic
#56227C #7C5622 #227C56
tetradic
#56227C #7C2922 #487C22 #22757C
square
#56227C #7C2922 #487C22 #22757C
split-complementary
#56227C #757C22 #227C29
monochromatic
#13081C #35154C #56227C #772FAC #964BCE

Accessibility & contrast

On white

10.96
#56227C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#56227C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #56227C
10.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56227C#FFFFFF#000000##FFFFFF
##56227C1.0010.961.9210.96
#FFFFFF10.961.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B7F
Deuteranopia (green-blind)
#073D7A
Tritanopia (blue-blind)
#50364C
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #56227c;
/* rgb */ color: rgb(86, 34, 124);
/* oklch */ color: oklch(37.6% 0.147 307.1);
Tailwind
colors: {
  custom: {
    50: '#8962a3',
    500: '#56227c',
    950: '#000000',
  },
}
SCSS
$custom: #56227c;
$custom-light: #8962a3;
$custom-dark: #000000;
JSON
{
  "hex": "#56227c",
  "rgb": {
    "r": 86,
    "g": 34,
    "b": 124
  },
  "hsl": {
    "h": 274.667,
    "s": 56.962,
    "l": 30.98
  },
  "oklch": {
    "l": 0.37573,
    "c": 0.14665,
    "h": 307.1
  },
  "luminance": 0.04578
}

Semantic roles & 50–950 ramp

primary
#56227C
secondary
#75AF4B
accent
#E04888
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C050F
muted
#7D7A7F

Preview Lab

Preview with #56227C

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

Preview Lab → · Contrast checker → · Palette generator →

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