#56229A#56229A

#56229A is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.1% C 0.180 H 297.1°. Best body text is #FFFFFF at 10.04:1 contrast (WCAG AA passes).

Color values

HEX#56229A
RGBrgb(86, 34, 154)
HSLhsl(266, 64%, 37%)
HSVhsv(266, 78%, 60%)
CMYKcmyk(44.2%, 77.9%, 0%, 39.6%)
CIE-LABlab(27.99, 48.29, -55.83)
CIE-LCHlch(27.99, 73.82, 310.86°)
OKLaboklab(40.12% 0.0819 -0.1598)
OKLCHoklch(40.12% 0.18 297.1)
XYZxyz(10.2410, 5.4554, 31.0790)
Luminance0.0546 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56229A #669A22
analogous
#222A9A #56229A #92229A
triadic
#56229A #9A5622 #229A56
tetradic
#56229A #9A222A #669A22 #229A92
square
#56229A #9A222A #669A22 #229A92
split-complementary
#56229A #9A9222 #2A9A22
monochromatic
#1E0C36 #3A1768 #56229A #722DCC #935BDB

Accessibility & contrast

On white

10.04
#56229A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#56229A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #56229A
10.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56229A#FFFFFF#000000##FFFFFF
##56229A1.0010.042.0910.04
#FFFFFF10.041.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429D
Deuteranopia (green-blind)
#004198
Tritanopia (blue-blind)
#44425D
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #56229a;
/* rgb */ color: rgb(86, 34, 154);
/* oklch */ color: oklch(40.1% 0.180 297.1);
Tailwind
colors: {
  custom: {
    50: '#8d63b9',
    500: '#56229a',
    950: '#000000',
  },
}
SCSS
$custom: #56229a;
$custom-light: #8d63b9;
$custom-dark: #000000;
JSON
{
  "hex": "#56229a",
  "rgb": {
    "r": 86,
    "g": 34,
    "b": 154
  },
  "hsl": {
    "h": 266,
    "s": 63.83,
    "l": 36.863
  },
  "oklch": {
    "l": 0.40115,
    "c": 0.17959,
    "h": 297.1
  },
  "luminance": 0.05456
}

Semantic roles & 50–950 ramp

primary
#56229A
secondary
#93BF58
accent
#E7419F
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #56229A

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

Preview Lab → · Contrast checker → · Palette generator →

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