#56227F#56227F

#56227F is a dark, vivid violet. Relative luminance 0.047; OKLCH L 37.8% C 0.150 H 305.9°. Best body text is #FFFFFF at 10.88:1 contrast (WCAG AA passes).

Color values

HEX#56227F
RGBrgb(86, 34, 127)
HSLhsl(274, 58%, 32%)
HSVhsv(274, 73%, 50%)
CMYKcmyk(32.3%, 73.2%, 0%, 50.2%)
CIE-LABlab(25.73, 41.43, -42.76)
CIE-LCHlch(25.73, 59.53, 314.10°)
OKLaboklab(37.81% 0.088 -0.1214)
OKLCHoklch(37.81% 0.15 305.9)
XYZxyz(8.2397, 4.6549, 20.5390)
Luminance0.0466 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56227F #4B7F22
analogous
#27227F #56227F #7F227A
triadic
#56227F #7F5622 #227F56
tetradic
#56227F #7F2722 #4B7F22 #227A7F
square
#56227F #7F2722 #4B7F22 #227A7F
split-complementary
#56227F #7A7F22 #227F27
monochromatic
#15081E #35154F #56227F #772FAF #954CCF

Accessibility & contrast

On white

10.88
#56227F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#56227F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #56227F
10.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56227F#FFFFFF#000000##FFFFFF
##56227F1.0010.881.9310.88
#FFFFFF10.881.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B82
Deuteranopia (green-blind)
#003D7D
Tritanopia (blue-blind)
#4F384E
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #56227f;
/* rgb */ color: rgb(86, 34, 127);
/* oklch */ color: oklch(37.8% 0.150 305.9);
Tailwind
colors: {
  custom: {
    50: '#8a62a5',
    500: '#56227f',
    950: '#000000',
  },
}
SCSS
$custom: #56227f;
$custom-light: #8a62a5;
$custom-dark: #000000;
JSON
{
  "hex": "#56227f",
  "rgb": {
    "r": 86,
    "g": 34,
    "b": 127
  },
  "hsl": {
    "h": 273.548,
    "s": 57.764,
    "l": 31.569
  },
  "oklch": {
    "l": 0.37811,
    "c": 0.14997,
    "h": 305.9
  },
  "luminance": 0.04655
}

Semantic roles & 50–950 ramp

primary
#56227F
secondary
#78B24B
accent
#E1478B
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C050F
muted
#7D7A7F

Preview Lab

Preview with #56227F

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

Preview Lab → · Contrast checker → · Palette generator →

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