#56228C#56228C

#56228C is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.9% C 0.164 H 301.3°. Best body text is #FFFFFF at 10.48:1 contrast (WCAG AA passes).

Color values

HEX#56228C
RGBrgb(86, 34, 140)
HSLhsl(269, 61%, 34%)
HSVhsv(269, 76%, 55%)
CMYKcmyk(38.6%, 75.7%, 0%, 45.1%)
CIE-LABlab(26.78, 44.69, -49.19)
CIE-LCHlch(26.78, 66.46, 312.26°)
OKLaboklab(38.89% 0.0854 -0.1403)
OKLCHoklch(38.89% 0.164 301.3)
XYZxyz(9.1423, 5.0159, 25.2924)
Luminance0.0502 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56228C #588C22
analogous
#22238C #56228C #8B228C
triadic
#56228C #8C5622 #228C56
tetradic
#56228C #8C2223 #588C22 #228C8B
square
#56228C #8C2223 #588C22 #228C8B
split-complementary
#56228C #8C8B22 #238C22
monochromatic
#1A0A2A #38165B #56228C #742EBD #9353D5

Accessibility & contrast

On white

10.48
#56228C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#56228C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #56228C
10.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56228C#FFFFFF#000000##FFFFFF
##56228C1.0010.482.0010.48
#FFFFFF10.481.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8F
Deuteranopia (green-blind)
#003F8A
Tritanopia (blue-blind)
#4A3D55
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #56228c;
/* rgb */ color: rgb(86, 34, 140);
/* oklch */ color: oklch(38.9% 0.164 301.3);
Tailwind
colors: {
  custom: {
    50: '#8b63ae',
    500: '#56228c',
    950: '#000000',
  },
}
SCSS
$custom: #56228c;
$custom-light: #8b63ae;
$custom-dark: #000000;
JSON
{
  "hex": "#56228c",
  "rgb": {
    "r": 86,
    "g": 34,
    "b": 140
  },
  "hsl": {
    "h": 269.434,
    "s": 60.92,
    "l": 34.118
  },
  "oklch": {
    "l": 0.38886,
    "c": 0.16429,
    "h": 301.3
  },
  "luminance": 0.05016
}

Semantic roles & 50–950 ramp

primary
#56228C
secondary
#86B951
accent
#E44495
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0510
muted
#7D7A7F

Preview Lab

Preview with #56228C

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

Preview Lab → · Contrast checker → · Palette generator →

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