#56217F#56217F

#56217F is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.7% C 0.151 H 306.1°. Best body text is #FFFFFF at 10.94:1 contrast (WCAG AA passes).

Color values

HEX#56217F
RGBrgb(86, 33, 127)
HSLhsl(274, 59%, 31%)
HSVhsv(274, 74%, 50%)
CMYKcmyk(32.3%, 74%, 0%, 50.2%)
CIE-LABlab(25.56, 41.90, -43.03)
CIE-LCHlch(25.56, 60.06, 314.24°)
OKLaboklab(37.69% 0.0891 -0.1222)
OKLCHoklch(37.69% 0.151 306.1)
XYZxyz(8.2115, 4.5985, 20.5296)
Luminance0.0460 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56217F #4A7F21
analogous
#27217F #56217F #7F2179
triadic
#56217F #7F5621 #217F56
tetradic
#56217F #7F2721 #4A7F21 #21797F
square
#56217F #7F2721 #4A7F21 #21797F
split-complementary
#56217F #797F21 #217F27
monochromatic
#14081E #35144E #56217F #772EB0 #964AD0

Accessibility & contrast

On white

10.94
#56217F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#56217F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #56217F
10.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56217F#FFFFFF#000000##FFFFFF
##56217F1.0010.941.9210.94
#FFFFFF10.941.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.941.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #56217f;
/* rgb */ color: rgb(86, 33, 127);
/* oklch */ color: oklch(37.7% 0.151 306.1);
Tailwind
colors: {
  custom: {
    50: '#8a61a5',
    500: '#56217f',
    950: '#000000',
  },
}
SCSS
$custom: #56217f;
$custom-light: #8a61a5;
$custom-dark: #000000;
JSON
{
  "hex": "#56217f",
  "rgb": {
    "r": 86,
    "g": 33,
    "b": 127
  },
  "hsl": {
    "h": 273.83,
    "s": 58.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.37691,
    "c": 0.15125,
    "h": 306.1
  },
  "luminance": 0.04598
}

Semantic roles & 50–950 ramp

primary
#56217F
secondary
#77B24A
accent
#E2468A
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #56217F

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

Preview Lab → · Contrast checker → · Palette generator →

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