#56247F#56247F

#56247F is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.1% C 0.147 H 305.6°. Best body text is #FFFFFF at 10.74:1 contrast (WCAG AA passes).

Color values

HEX#56247F
RGBrgb(86, 36, 127)
HSLhsl(273, 56%, 32%)
HSVhsv(273, 72%, 50%)
CMYKcmyk(32.3%, 71.7%, 0%, 50.2%)
CIE-LABlab(26.08, 40.45, -42.19)
CIE-LCHlch(26.08, 58.45, 313.79°)
OKLaboklab(38.06% 0.0858 -0.1198)
OKLCHoklch(38.06% 0.147 305.6)
XYZxyz(8.2985, 4.7726, 20.5586)
Luminance0.0477 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56247F #4D7F24
analogous
#29247F #56247F #7F247B
triadic
#56247F #7F5624 #247F56
tetradic
#56247F #7F2924 #4D7F24 #247B7F
square
#56247F #7F2924 #4D7F24 #247B7F
split-complementary
#56247F #7B7F24 #247F29
monochromatic
#150920 #36164F #56247F #7632AF #9550CD

Accessibility & contrast

On white

10.74
#56247F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #56247F
10.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56247F#FFFFFF#000000##FFFFFF
##56247F1.0010.741.9510.74
#FFFFFF10.741.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C82
Deuteranopia (green-blind)
#033E7D
Tritanopia (blue-blind)
#4F394E
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #56247f;
/* rgb */ color: rgb(86, 36, 127);
/* oklch */ color: oklch(38.1% 0.147 305.6);
Tailwind
colors: {
  custom: {
    50: '#8a63a5',
    500: '#56247f',
    950: '#000000',
  },
}
SCSS
$custom: #56247f;
$custom-light: #8a63a5;
$custom-dark: #000000;
JSON
{
  "hex": "#56247f",
  "rgb": {
    "r": 86,
    "g": 36,
    "b": 127
  },
  "hsl": {
    "h": 272.967,
    "s": 55.828,
    "l": 31.961
  },
  "oklch": {
    "l": 0.38059,
    "c": 0.14732,
    "h": 305.6
  },
  "luminance": 0.04772
}

Semantic roles & 50–950 ramp

primary
#56247F
secondary
#7AB14E
accent
#DF498C
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C050F
muted
#7D7A7F

Preview Lab

Preview with #56247F

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

Preview Lab → · Contrast checker → · Palette generator →

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