#56227B#56227B

#56227B is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.5% C 0.146 H 307.5°. Best body text is #FFFFFF at 10.99:1 contrast (WCAG AA passes).

Color values

HEX#56227B
RGBrgb(86, 34, 123)
HSLhsl(275, 57%, 31%)
HSVhsv(275, 72%, 48%)
CMYKcmyk(30.1%, 72.4%, 0%, 51.8%)
CIE-LABlab(25.42, 40.44, -40.73)
CIE-LCHlch(25.42, 57.39, 314.80°)
OKLaboklab(37.49% 0.0886 -0.1155)
OKLCHoklch(37.49% 0.146 307.5)
XYZxyz(7.9842, 4.5527, 19.1932)
Luminance0.0455 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56227B #477B22
analogous
#29227B #56227B #7B2273
triadic
#56227B #7B5622 #227B56
tetradic
#56227B #7B2922 #477B22 #22737B
square
#56227B #7B2922 #477B22 #22737B
split-complementary
#56227B #737B22 #227B29
monochromatic
#13071B #34154B #56227B #782FAB #974ACD

Accessibility & contrast

On white

10.99
#56227B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #56227B
10.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56227B#FFFFFF#000000##FFFFFF
##56227B1.0010.991.9110.99
#FFFFFF10.991.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A7E
Deuteranopia (green-blind)
#093D79
Tritanopia (blue-blind)
#50364C
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #56227b;
/* rgb */ color: rgb(86, 34, 123);
/* oklch */ color: oklch(37.5% 0.146 307.5);
Tailwind
colors: {
  custom: {
    50: '#8962a2',
    500: '#56227b',
    950: '#000000',
  },
}
SCSS
$custom: #56227b;
$custom-light: #8962a2;
$custom-dark: #000000;
JSON
{
  "hex": "#56227b",
  "rgb": {
    "r": 86,
    "g": 34,
    "b": 123
  },
  "hsl": {
    "h": 275.056,
    "s": 56.688,
    "l": 30.784
  },
  "oklch": {
    "l": 0.37494,
    "c": 0.14554,
    "h": 307.5
  },
  "luminance": 0.04553
}

Semantic roles & 50–950 ramp

primary
#56227B
secondary
#74AE4B
accent
#E04887
background
#F8F6FA
surface
#F0EBF3
border
#CBC6CD
text
#0C050F
muted
#7D7A7F

Preview Lab

Preview with #56227B

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

Preview Lab → · Contrast checker → · Palette generator →

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