#56247E#56247E

#56247E is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.0% C 0.146 H 306.0°. Best body text is #FFFFFF at 10.77:1 contrast (WCAG AA passes).

Color values

HEX#56247E
RGBrgb(86, 36, 126)
HSLhsl(273, 56%, 32%)
HSVhsv(273, 71%, 49%)
CMYKcmyk(31.7%, 71.4%, 0%, 50.6%)
CIE-LABlab(26.00, 40.20, -41.68)
CIE-LCHlch(26.00, 57.91, 313.96°)
OKLaboklab(37.98% 0.0859 -0.1183)
OKLCHoklch(37.98% 0.146 306)
XYZxyz(8.2337, 4.7466, 20.2170)
Luminance0.0475 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56247E #4C7E24
analogous
#29247E #56247E #7E2479
triadic
#56247E #7E5624 #247E56
tetradic
#56247E #7E2924 #4C7E24 #24797E
square
#56247E #7E2924 #4C7E24 #24797E
split-complementary
#56247E #797E24 #247E29
monochromatic
#15091F #36164E #56247E #7632AE #9550CD

Accessibility & contrast

On white

10.77
#56247E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#56247E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #56247E
10.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56247E#FFFFFF#000000##FFFFFF
##56247E1.0010.771.9510.77
#FFFFFF10.771.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C81
Deuteranopia (green-blind)
#063E7C
Tritanopia (blue-blind)
#4F384E
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #56247e;
/* rgb */ color: rgb(86, 36, 126);
/* oklch */ color: oklch(38.0% 0.146 306.0);
Tailwind
colors: {
  custom: {
    50: '#8963a4',
    500: '#56247e',
    950: '#000000',
  },
}
SCSS
$custom: #56247e;
$custom-light: #8963a4;
$custom-dark: #000000;
JSON
{
  "hex": "#56247e",
  "rgb": {
    "r": 86,
    "g": 36,
    "b": 126
  },
  "hsl": {
    "h": 273.333,
    "s": 55.556,
    "l": 31.765
  },
  "oklch": {
    "l": 0.37981,
    "c": 0.1462,
    "h": 306
  },
  "luminance": 0.04747
}

Semantic roles & 50–950 ramp

primary
#56247E
secondary
#79B04E
accent
#DF498C
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C050F
muted
#7D7A7F

Preview Lab

Preview with #56247E

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

Preview Lab → · Contrast checker → · Palette generator →

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