#56175B#56175B

#56175B is a dark, vivid purple. Relative luminance 0.033; OKLCH L 33.9% C 0.128 H 324.8°. Best body text is #FFFFFF at 12.58:1 contrast (WCAG AA passes).

Color values

HEX#56175B
RGBrgb(86, 23, 91)
HSLhsl(296, 60%, 22%)
HSVhsv(296, 75%, 36%)
CMYKcmyk(5.5%, 74.7%, 0%, 64.3%)
CIE-LABlab(21.38, 38.31, -26.45)
CIE-LCHlch(21.38, 46.55, 325.38°)
OKLaboklab(33.89% 0.1041 -0.0736)
OKLCHoklch(33.89% 0.128 324.8)
XYZxyz(6.0323, 3.3469, 10.2238)
Luminance0.0335 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56175B #1C5B17
analogous
#34175B #56175B #5B173E
triadic
#56175B #5B5617 #175B56
tetradic
#56175B #5B3417 #1C5B17 #173E5B
square
#56175B #5B3417 #1C5B17 #173E5B
split-complementary
#56175B #3E5B17 #175B34
monochromatic
#170618 #280B2A #56175B #84238C #B230BD

Accessibility & contrast

On white

12.58
#56175B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#56175B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #56175B
12.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56175B#FFFFFF#000000##FFFFFF
##56175B1.0012.581.6712.58
#FFFFFF12.581.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#062E5D
Deuteranopia (green-blind)
#243659
Tritanopia (blue-blind)
#582237
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #56175b;
/* rgb */ color: rgb(86, 23, 91);
/* oklch */ color: oklch(33.9% 0.128 324.8);
Tailwind
colors: {
  custom: {
    50: '#885b8a',
    500: '#56175b',
    950: '#000000',
  },
}
SCSS
$custom: #56175b;
$custom-light: #885b8a;
$custom-dark: #000000;
JSON
{
  "hex": "#56175b",
  "rgb": {
    "r": 86,
    "g": 23,
    "b": 91
  },
  "hsl": {
    "h": 295.588,
    "s": 59.649,
    "l": 22.353
  },
  "oklch": {
    "l": 0.33888,
    "c": 0.12751,
    "h": 324.8
  },
  "luminance": 0.03347
}

Semantic roles & 50–950 ramp

primary
#56175B
secondary
#42923C
accent
#E34551
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040B
muted
#7D797C

Preview Lab

Preview with #56175B

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

Preview Lab → · Contrast checker → · Palette generator →

#56175B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva