#56175F#56175F

#56175F is a dark, vivid purple. Relative luminance 0.034; OKLCH L 34.2% C 0.131 H 322.4°. Best body text is #FFFFFF at 12.47:1 contrast (WCAG AA passes).

Color values

HEX#56175F
RGBrgb(86, 23, 95)
HSLhsl(293, 61%, 23%)
HSVhsv(293, 76%, 37%)
CMYKcmyk(9.5%, 75.8%, 0%, 62.7%)
CIE-LABlab(21.64, 39.11, -28.68)
CIE-LCHlch(21.64, 48.50, 323.75°)
OKLaboklab(34.16% 0.104 -0.0801)
OKLCHoklch(34.16% 0.131 322.4)
XYZxyz(6.2095, 3.4178, 11.1569)
Luminance0.0342 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56175F #205F17
analogous
#32175F #56175F #5F1744
triadic
#56175F #5F5617 #175F56
tetradic
#56175F #5F3217 #205F17 #17445F
square
#56175F #5F3217 #205F17 #17445F
split-complementary
#56175F #445F17 #175F32
monochromatic
#160619 #290B2E #56175F #832390 #AF2FC2

Accessibility & contrast

On white

12.47
#56175F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#56175F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #56175F
12.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56175F#FFFFFF#000000##FFFFFF
##56175F1.0012.471.6812.47
#FFFFFF12.471.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F61
Deuteranopia (green-blind)
#21365D
Tritanopia (blue-blind)
#572439
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #56175f;
/* rgb */ color: rgb(86, 23, 95);
/* oklch */ color: oklch(34.2% 0.131 322.4);
Tailwind
colors: {
  custom: {
    50: '#885b8d',
    500: '#56175f',
    950: '#000000',
  },
}
SCSS
$custom: #56175f;
$custom-light: #885b8d;
$custom-dark: #000000;
JSON
{
  "hex": "#56175f",
  "rgb": {
    "r": 86,
    "g": 23,
    "b": 95
  },
  "hsl": {
    "h": 292.5,
    "s": 61.017,
    "l": 23.137
  },
  "oklch": {
    "l": 0.3416,
    "c": 0.13128,
    "h": 322.4
  },
  "luminance": 0.03417
}

Semantic roles & 50–950 ramp

primary
#56175F
secondary
#47963C
accent
#E44458
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040C
muted
#7D797D

Preview Lab

Preview with #56175F

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

Preview Lab → · Contrast checker → · Palette generator →

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