#56175A#56175A

#56175A is a dark, vivid purple. Relative luminance 0.033; OKLCH L 33.8% C 0.127 H 325.4°. Best body text is #FFFFFF at 12.61:1 contrast (WCAG AA passes).

Color values

HEX#56175A
RGBrgb(86, 23, 90)
HSLhsl(296, 59%, 22%)
HSVhsv(296, 74%, 35%)
CMYKcmyk(4.4%, 74.4%, 0%, 64.7%)
CIE-LABlab(21.32, 38.11, -25.89)
CIE-LCHlch(21.32, 46.07, 325.81°)
OKLaboklab(33.82% 0.1042 -0.0719)
OKLCHoklch(33.82% 0.127 325.4)
XYZxyz(5.9895, 3.3298, 9.9981)
Luminance0.0333 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56175A #1B5A17
analogous
#35175A #56175A #5A173D
triadic
#56175A #5A5617 #175A56
tetradic
#56175A #5A3517 #1B5A17 #173D5A
square
#56175A #5A3517 #1B5A17 #173D5A
split-complementary
#56175A #3D5A17 #175A35
monochromatic
#170618 #270B29 #56175A #85238B #B330BB

Accessibility & contrast

On white

12.61
#56175A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #56175A
12.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56175A#FFFFFF#000000##FFFFFF
##56175A1.0012.611.6712.61
#FFFFFF12.611.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#072E5C
Deuteranopia (green-blind)
#253658
Tritanopia (blue-blind)
#582236
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #56175a;
/* rgb */ color: rgb(86, 23, 90);
/* oklch */ color: oklch(33.8% 0.127 325.4);
Tailwind
colors: {
  custom: {
    50: '#885b89',
    500: '#56175a',
    950: '#000000',
  },
}
SCSS
$custom: #56175a;
$custom-light: #885b89;
$custom-dark: #000000;
JSON
{
  "hex": "#56175a",
  "rgb": {
    "r": 86,
    "g": 23,
    "b": 90
  },
  "hsl": {
    "h": 296.418,
    "s": 59.292,
    "l": 22.157
  },
  "oklch": {
    "l": 0.33821,
    "c": 0.12657,
    "h": 325.4
  },
  "luminance": 0.03329
}

Semantic roles & 50–950 ramp

primary
#56175A
secondary
#41913C
accent
#E2454F
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040B
muted
#7D797C

Preview Lab

Preview with #56175A

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

Preview Lab → · Contrast checker → · Palette generator →

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