#56277E#56277E

#56277E is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.4% C 0.142 H 305.5°. Best body text is #FFFFFF at 10.57:1 contrast (WCAG AA passes).

Color values

HEX#56277E
RGBrgb(86, 39, 126)
HSLhsl(272, 53%, 32%)
HSVhsv(272, 69%, 49%)
CMYKcmyk(31.7%, 69%, 0%, 50.6%)
CIE-LABlab(26.55, 38.67, -40.79)
CIE-LCHlch(26.55, 56.21, 313.47°)
OKLaboklab(38.38% 0.0824 -0.1157)
OKLCHoklch(38.38% 0.142 305.5)
XYZxyz(8.3283, 4.9359, 20.2486)
Luminance0.0494 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56277E #4F7E27
analogous
#2B277E #56277E #7E277A
triadic
#56277E #7E5627 #277E56
tetradic
#56277E #7E2B27 #4F7E27 #277A7E
square
#56277E #7E2B27 #4F7E27 #277A7E
split-complementary
#56277E #7A7E27 #277E2B
monochromatic
#160A21 #36194F #56277E #7635AD #9455CA

Accessibility & contrast

On white

10.57
#56277E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#56277E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #56277E
10.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56277E#FFFFFF#000000##FFFFFF
##56277E1.0010.571.9910.57
#FFFFFF10.571.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D81
Deuteranopia (green-blind)
#0D3F7C
Tritanopia (blue-blind)
#4F3A4F
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #56277e;
/* rgb */ color: rgb(86, 39, 126);
/* oklch */ color: oklch(38.4% 0.142 305.5);
Tailwind
colors: {
  custom: {
    50: '#8965a4',
    500: '#56277e',
    950: '#000000',
  },
}
SCSS
$custom: #56277e;
$custom-light: #8965a4;
$custom-dark: #000000;
JSON
{
  "hex": "#56277e",
  "rgb": {
    "r": 86,
    "g": 39,
    "b": 126
  },
  "hsl": {
    "h": 272.414,
    "s": 52.727,
    "l": 32.353
  },
  "oklch": {
    "l": 0.38375,
    "c": 0.14203,
    "h": 305.5
  },
  "luminance": 0.04936
}

Semantic roles & 50–950 ramp

primary
#56277E
secondary
#7DAF52
accent
#DC4C8E
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C060F
muted
#7D7A7F

Preview Lab

Preview with #56277E

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

Preview Lab → · Contrast checker → · Palette generator →

#56277E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva