#56228F#56228F

#56228F is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.1% C 0.168 H 300.4°. Best body text is #FFFFFF at 10.39:1 contrast (WCAG AA passes).

Color values

HEX#56228F
RGBrgb(86, 34, 143)
HSLhsl(269, 62%, 35%)
HSVhsv(269, 76%, 56%)
CMYKcmyk(39.9%, 76.2%, 0%, 43.9%)
CIE-LABlab(27.03, 45.46, -50.63)
CIE-LCHlch(27.03, 68.05, 311.92°)
OKLaboklab(39.14% 0.0847 -0.1446)
OKLCHoklch(39.14% 0.168 300.4)
XYZxyz(9.3665, 5.1056, 26.4733)
Luminance0.0511 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56228F #5B8F22
analogous
#22248F #56228F #8D228F
triadic
#56228F #8F5622 #228F56
tetradic
#56228F #8F2224 #5B8F22 #228F8D
square
#56228F #8F2224 #5B8F22 #228F8D
split-complementary
#56228F #8F8D22 #248F22
monochromatic
#1B0A2C #38165E #56228F #742EC0 #9355D7

Accessibility & contrast

On white

10.39
#56228F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#56228F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #56228F
10.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56228F#FFFFFF#000000##FFFFFF
##56228F1.0010.392.0210.39
#FFFFFF10.391.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004092
Deuteranopia (green-blind)
#003F8D
Tritanopia (blue-blind)
#493E57
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #56228f;
/* rgb */ color: rgb(86, 34, 143);
/* oklch */ color: oklch(39.1% 0.168 300.4);
Tailwind
colors: {
  custom: {
    50: '#8b63b1',
    500: '#56228f',
    950: '#000000',
  },
}
SCSS
$custom: #56228f;
$custom-light: #8b63b1;
$custom-dark: #000000;
JSON
{
  "hex": "#56228f",
  "rgb": {
    "r": 86,
    "g": 34,
    "b": 143
  },
  "hsl": {
    "h": 268.624,
    "s": 61.582,
    "l": 34.706
  },
  "oklch": {
    "l": 0.39143,
    "c": 0.16758,
    "h": 300.4
  },
  "luminance": 0.05106
}

Semantic roles & 50–950 ramp

primary
#56228F
secondary
#89BA52
accent
#E54398
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0D0511
muted
#7D7A80

Preview Lab

Preview with #56228F

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

Preview Lab → · Contrast checker → · Palette generator →

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