#56187F#56187F

#56187F is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.7% C 0.162 H 307.3°. Best body text is #FFFFFF at 11.46:1 contrast (WCAG AA passes).

Color values

HEX#56187F
RGBrgb(86, 24, 127)
HSLhsl(276, 68%, 30%)
HSVhsv(276, 81%, 50%)
CMYKcmyk(32.3%, 81.1%, 0%, 50.2%)
CIE-LABlab(24.21, 45.77, -45.23)
CIE-LCHlch(24.21, 64.34, 315.34°)
OKLaboklab(36.74% 0.0978 -0.1286)
OKLCHoklch(36.74% 0.162 307.3)
XYZxyz(7.9943, 4.1641, 20.4572)
Luminance0.0416 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56187F #417F18
analogous
#23187F #56187F #7F1874
triadic
#56187F #7F5618 #187F56
tetradic
#56187F #7F2318 #417F18 #18747F
square
#56187F #7F2318 #417F18 #18747F
split-complementary
#56187F #747F18 #187F23
monochromatic
#11051A #330E4C #56187F #7922B2 #9938D9

Accessibility & contrast

On white

11.46
#56187F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#56187F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #56187F
11.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56187F#FFFFFF#000000##FFFFFF
##56187F1.0011.461.8311.46
#FFFFFF11.461.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003882
Deuteranopia (green-blind)
#003A7D
Tritanopia (blue-blind)
#4F334B
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #56187f;
/* rgb */ color: rgb(86, 24, 127);
/* oklch */ color: oklch(36.7% 0.162 307.3);
Tailwind
colors: {
  custom: {
    50: '#8a5da5',
    500: '#56187f',
    950: '#000000',
  },
}
SCSS
$custom: #56187f;
$custom-light: #8a5da5;
$custom-dark: #000000;
JSON
{
  "hex": "#56187f",
  "rgb": {
    "r": 86,
    "g": 24,
    "b": 127
  },
  "hsl": {
    "h": 276.117,
    "s": 68.212,
    "l": 29.608
  },
  "oklch": {
    "l": 0.36737,
    "c": 0.16161,
    "h": 307.3
  },
  "luminance": 0.04164
}

Semantic roles & 50–950 ramp

primary
#56187F
secondary
#6EB33F
accent
#EB3D82
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #56187F

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

Preview Lab → · Contrast checker → · Palette generator →

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