#56228E#56228E

#56228E is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.1% C 0.166 H 300.7°. Best body text is #FFFFFF at 10.42:1 contrast (WCAG AA passes).

Color values

HEX#56228E
RGBrgb(86, 34, 142)
HSLhsl(269, 61%, 35%)
HSVhsv(269, 76%, 56%)
CMYKcmyk(39.4%, 76.1%, 0%, 44.3%)
CIE-LABlab(26.95, 45.20, -50.15)
CIE-LCHlch(26.95, 67.52, 312.03°)
OKLaboklab(39.06% 0.085 -0.1432)
OKLCHoklch(39.06% 0.166 300.7)
XYZxyz(9.2911, 5.0754, 26.0761)
Luminance0.0508 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56228E #5A8E22
analogous
#22248E #56228E #8C228E
triadic
#56228E #8E5622 #228E56
tetradic
#56228E #8E2224 #5A8E22 #228E8C
square
#56228E #8E2224 #5A8E22 #228E8C
split-complementary
#56228E #8E8C22 #248E22
monochromatic
#1A0A2B #38165D #56228E #742EBF #9354D6

Accessibility & contrast

On white

10.42
#56228E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#56228E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #56228E
10.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56228E#FFFFFF#000000##FFFFFF
##56228E1.0010.422.0210.42
#FFFFFF10.421.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F91
Deuteranopia (green-blind)
#003F8C
Tritanopia (blue-blind)
#493E56
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #56228e;
/* rgb */ color: rgb(86, 34, 142);
/* oklch */ color: oklch(39.1% 0.166 300.7);
Tailwind
colors: {
  custom: {
    50: '#8b63b0',
    500: '#56228e',
    950: '#000000',
  },
}
SCSS
$custom: #56228e;
$custom-light: #8b63b0;
$custom-dark: #000000;
JSON
{
  "hex": "#56228e",
  "rgb": {
    "r": 86,
    "g": 34,
    "b": 142
  },
  "hsl": {
    "h": 268.889,
    "s": 61.364,
    "l": 34.51
  },
  "oklch": {
    "l": 0.39057,
    "c": 0.16648,
    "h": 300.7
  },
  "luminance": 0.05075
}

Semantic roles & 50–950 ramp

primary
#56228E
secondary
#88BA52
accent
#E44397
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0511
muted
#7D7A80

Preview Lab

Preview with #56228E

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

Preview Lab → · Contrast checker → · Palette generator →

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