#56229F#56229F

#56229F is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.6% C 0.185 H 295.8°. Best body text is #FFFFFF at 9.88:1 contrast (WCAG AA passes).

Color values

HEX#56229F
RGBrgb(86, 34, 159)
HSLhsl(265, 65%, 38%)
HSVhsv(265, 79%, 62%)
CMYKcmyk(45.9%, 78.6%, 0%, 37.6%)
CIE-LABlab(28.45, 49.59, -58.14)
CIE-LCHlch(28.45, 76.42, 310.46°)
OKLaboklab(40.57% 0.0804 -0.1666)
OKLCHoklch(40.57% 0.185 295.8)
XYZxyz(10.6661, 5.6254, 33.3180)
Luminance0.0563 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56229F #6B9F22
analogous
#222C9F #56229F #94229F
triadic
#56229F #9F5622 #229F56
tetradic
#56229F #9F222C #6B9F22 #229F94
square
#56229F #9F222C #6B9F22 #229F94
split-complementary
#56229F #9F9422 #2C9F22
monochromatic
#1F0C3A #3B176D #56229F #712DD1 #935FDD

Accessibility & contrast

On white

9.88
#56229F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#56229F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #56229F
9.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56229F#FFFFFF#000000##FFFFFF
##56229F1.009.882.139.88
#FFFFFF9.881.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A2
Deuteranopia (green-blind)
#00419D
Tritanopia (blue-blind)
#414560
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #56229f;
/* rgb */ color: rgb(86, 34, 159);
/* oklch */ color: oklch(40.6% 0.185 295.8);
Tailwind
colors: {
  custom: {
    50: '#8d64bc',
    500: '#56229f',
    950: '#000000',
  },
}
SCSS
$custom: #56229f;
$custom-light: #8d64bc;
$custom-dark: #000000;
JSON
{
  "hex": "#56229f",
  "rgb": {
    "r": 86,
    "g": 34,
    "b": 159
  },
  "hsl": {
    "h": 264.96,
    "s": 64.767,
    "l": 37.843
  },
  "oklch": {
    "l": 0.4057,
    "c": 0.18502,
    "h": 295.8
  },
  "luminance": 0.05626
}

Semantic roles & 50–950 ramp

primary
#56229F
secondary
#97C15B
accent
#E840A2
background
#F9F6FB
surface
#F1EBF7
border
#CBC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #56229F

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

Preview Lab → · Contrast checker → · Palette generator →

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