#56229C#56229C

#56229C is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.3% C 0.182 H 296.6°. Best body text is #FFFFFF at 9.98:1 contrast (WCAG AA passes).

Color values

HEX#56229C
RGBrgb(86, 34, 156)
HSLhsl(266, 64%, 37%)
HSVhsv(266, 78%, 61%)
CMYKcmyk(44.9%, 78.2%, 0%, 38.8%)
CIE-LABlab(28.17, 48.81, -56.76)
CIE-LCHlch(28.17, 74.86, 310.69°)
OKLaboklab(40.3% 0.0813 -0.1626)
OKLCHoklch(40.3% 0.182 296.6)
XYZxyz(10.4089, 5.5226, 31.9636)
Luminance0.0552 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56229C #689C22
analogous
#222B9C #56229C #93229C
triadic
#56229C #9C5622 #229C56
tetradic
#56229C #9C222B #689C22 #229C93
square
#56229C #9C222B #689C22 #229C93
split-complementary
#56229C #9C9322 #2B9C22
monochromatic
#1F0C38 #3A176A #56229C #722DCE #935DDC

Accessibility & contrast

On white

9.98
#56229C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#56229C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #56229C
9.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56229C#FFFFFF#000000##FFFFFF
##56229C1.009.982.109.98
#FFFFFF9.981.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF9.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439F
Deuteranopia (green-blind)
#00419A
Tritanopia (blue-blind)
#43435E
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #56229c;
/* rgb */ color: rgb(86, 34, 156);
/* oklch */ color: oklch(40.3% 0.182 296.6);
Tailwind
colors: {
  custom: {
    50: '#8d63ba',
    500: '#56229c',
    950: '#000000',
  },
}
SCSS
$custom: #56229c;
$custom-light: #8d63ba;
$custom-dark: #000000;
JSON
{
  "hex": "#56229c",
  "rgb": {
    "r": 86,
    "g": 34,
    "b": 156
  },
  "hsl": {
    "h": 265.574,
    "s": 64.211,
    "l": 37.255
  },
  "oklch": {
    "l": 0.40296,
    "c": 0.18177,
    "h": 296.6
  },
  "luminance": 0.05523
}

Semantic roles & 50–950 ramp

primary
#56229C
secondary
#94C05A
accent
#E741A0
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #56229C

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

Preview Lab → · Contrast checker → · Palette generator →

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