#56229E#56229E

#56229E is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.5% C 0.184 H 296.0°. Best body text is #FFFFFF at 9.91:1 contrast (WCAG AA passes).

Color values

HEX#56229E
RGBrgb(86, 34, 158)
HSLhsl(265, 65%, 38%)
HSVhsv(265, 78%, 62%)
CMYKcmyk(45.6%, 78.5%, 0%, 38%)
CIE-LABlab(28.36, 49.33, -57.68)
CIE-LCHlch(28.36, 75.90, 310.54°)
OKLaboklab(40.48% 0.0807 -0.1653)
OKLCHoklch(40.48% 0.184 296)
XYZxyz(10.5797, 5.5909, 32.8629)
Luminance0.0559 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56229E #6A9E22
analogous
#222C9E #56229E #94229E
triadic
#56229E #9E5622 #229E56
tetradic
#56229E #9E222C #6A9E22 #229E94
square
#56229E #9E222C #6A9E22 #229E94
split-complementary
#56229E #9E9422 #2C9E22
monochromatic
#1F0C39 #3B176C #56229E #712DD0 #935EDC

Accessibility & contrast

On white

9.91
#56229E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#56229E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #56229E
9.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56229E#FFFFFF#000000##FFFFFF
##56229E1.009.912.129.91
#FFFFFF9.911.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A1
Deuteranopia (green-blind)
#00419C
Tritanopia (blue-blind)
#42445F
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #56229e;
/* rgb */ color: rgb(86, 34, 158);
/* oklch */ color: oklch(40.5% 0.184 296.0);
Tailwind
colors: {
  custom: {
    50: '#8d63bc',
    500: '#56229e',
    950: '#000000',
  },
}
SCSS
$custom: #56229e;
$custom-light: #8d63bc;
$custom-dark: #000000;
JSON
{
  "hex": "#56229e",
  "rgb": {
    "r": 86,
    "g": 34,
    "b": 158
  },
  "hsl": {
    "h": 265.161,
    "s": 64.583,
    "l": 37.647
  },
  "oklch": {
    "l": 0.40478,
    "c": 0.18393,
    "h": 296
  },
  "luminance": 0.05591
}

Semantic roles & 50–950 ramp

primary
#56229E
secondary
#96C15B
accent
#E840A1
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #56229E

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

Preview Lab → · Contrast checker → · Palette generator →

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