#56228D#56228D

#56228D is a dark, vivid violet. Relative luminance 0.050; OKLCH L 39.0% C 0.165 H 301.0°. Best body text is #FFFFFF at 10.45:1 contrast (WCAG AA passes).

Color values

HEX#56228D
RGBrgb(86, 34, 141)
HSLhsl(269, 61%, 34%)
HSVhsv(269, 76%, 55%)
CMYKcmyk(39%, 75.9%, 0%, 44.7%)
CIE-LABlab(26.86, 44.95, -49.67)
CIE-LCHlch(26.86, 66.99, 312.14°)
OKLaboklab(38.97% 0.0852 -0.1418)
OKLCHoklch(38.97% 0.165 301)
XYZxyz(9.2163, 5.0455, 25.6825)
Luminance0.0505 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56228D #598D22
analogous
#22238D #56228D #8C228D
triadic
#56228D #8D5622 #228D56
tetradic
#56228D #8D2223 #598D22 #228D8C
square
#56228D #8D2223 #598D22 #228D8C
split-complementary
#56228D #8D8C22 #238D22
monochromatic
#1A0A2A #38165C #56228D #742EBE #9354D6

Accessibility & contrast

On white

10.45
#56228D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#56228D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #56228D
10.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56228D#FFFFFF#000000##FFFFFF
##56228D1.0010.452.0110.45
#FFFFFF10.451.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F90
Deuteranopia (green-blind)
#003F8B
Tritanopia (blue-blind)
#4A3D56
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #56228d;
/* rgb */ color: rgb(86, 34, 141);
/* oklch */ color: oklch(39.0% 0.165 301.0);
Tailwind
colors: {
  custom: {
    50: '#8b63af',
    500: '#56228d',
    950: '#000000',
  },
}
SCSS
$custom: #56228d;
$custom-light: #8b63af;
$custom-dark: #000000;
JSON
{
  "hex": "#56228d",
  "rgb": {
    "r": 86,
    "g": 34,
    "b": 141
  },
  "hsl": {
    "h": 269.159,
    "s": 61.143,
    "l": 34.314
  },
  "oklch": {
    "l": 0.38971,
    "c": 0.16539,
    "h": 301
  },
  "luminance": 0.05046
}

Semantic roles & 50–950 ramp

primary
#56228D
secondary
#87B951
accent
#E44496
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0510
muted
#7D7A7F

Preview Lab

Preview with #56228D

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

Preview Lab → · Contrast checker → · Palette generator →

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