#56229B#56229B

#56229B is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.2% C 0.181 H 296.8°. Best body text is #FFFFFF at 10.01:1 contrast (WCAG AA passes).

Color values

HEX#56229B
RGBrgb(86, 34, 155)
HSLhsl(266, 64%, 37%)
HSVhsv(266, 78%, 61%)
CMYKcmyk(44.5%, 78.1%, 0%, 39.2%)
CIE-LABlab(28.08, 48.55, -56.30)
CIE-LCHlch(28.08, 74.34, 310.78°)
OKLaboklab(40.21% 0.0816 -0.1612)
OKLCHoklch(40.21% 0.181 296.8)
XYZxyz(10.3246, 5.4888, 31.5195)
Luminance0.0549 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56229B #679B22
analogous
#222B9B #56229B #93229B
triadic
#56229B #9B5622 #229B56
tetradic
#56229B #9B222B #679B22 #229B93
square
#56229B #9B222B #679B22 #229B93
split-complementary
#56229B #9B9322 #2B9B22
monochromatic
#1E0C37 #3A1769 #56229B #722DCD #935CDB

Accessibility & contrast

On white

10.01
#56229B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #56229B
10.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56229B#FFFFFF#000000##FFFFFF
##56229B1.0010.012.1010.01
#FFFFFF10.011.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439E
Deuteranopia (green-blind)
#004199
Tritanopia (blue-blind)
#44435E
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #56229b;
/* rgb */ color: rgb(86, 34, 155);
/* oklch */ color: oklch(40.2% 0.181 296.8);
Tailwind
colors: {
  custom: {
    50: '#8d63b9',
    500: '#56229b',
    950: '#000000',
  },
}
SCSS
$custom: #56229b;
$custom-light: #8d63b9;
$custom-dark: #000000;
JSON
{
  "hex": "#56229b",
  "rgb": {
    "r": 86,
    "g": 34,
    "b": 155
  },
  "hsl": {
    "h": 265.785,
    "s": 64.021,
    "l": 37.059
  },
  "oklch": {
    "l": 0.40205,
    "c": 0.18068,
    "h": 296.8
  },
  "luminance": 0.05489
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #56229B

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

Preview Lab → · Contrast checker → · Palette generator →

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