#56197F#56197F

#56197F is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.8% C 0.161 H 307.1°. Best body text is #FFFFFF at 11.41:1 contrast (WCAG AA passes).

Color values

HEX#56197F
RGBrgb(86, 25, 127)
HSLhsl(276, 67%, 30%)
HSVhsv(276, 80%, 50%)
CMYKcmyk(32.3%, 80.3%, 0%, 50.2%)
CIE-LABlab(24.34, 45.38, -45.01)
CIE-LCHlch(24.34, 63.91, 315.23°)
OKLaboklab(36.83% 0.097 -0.128)
OKLCHoklch(36.83% 0.161 307.1)
XYZxyz(8.0153, 4.2061, 20.4642)
Luminance0.0421 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56197F #427F19
analogous
#23197F #56197F #7F1975
triadic
#56197F #7F5619 #197F56
tetradic
#56197F #7F2319 #427F19 #19757F
square
#56197F #7F2319 #427F19 #19757F
split-complementary
#56197F #757F19 #197F23
monochromatic
#11051A #330F4C #56197F #7923B2 #993AD8

Accessibility & contrast

On white

11.41
#56197F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#56197F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #56197F
11.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56197F#FFFFFF#000000##FFFFFF
##56197F1.0011.411.8411.41
#FFFFFF11.411.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.411.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #56197f;
/* rgb */ color: rgb(86, 25, 127);
/* oklch */ color: oklch(36.8% 0.161 307.1);
Tailwind
colors: {
  custom: {
    50: '#8a5da5',
    500: '#56197f',
    950: '#000000',
  },
}
SCSS
$custom: #56197f;
$custom-light: #8a5da5;
$custom-dark: #000000;
JSON
{
  "hex": "#56197f",
  "rgb": {
    "r": 86,
    "g": 25,
    "b": 127
  },
  "hsl": {
    "h": 275.882,
    "s": 67.105,
    "l": 29.804
  },
  "oklch": {
    "l": 0.36832,
    "c": 0.16058,
    "h": 307.1
  },
  "luminance": 0.04206
}

Semantic roles & 50–950 ramp

primary
#56197F
secondary
#6FB341
accent
#EA3E83
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #56197F

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

Preview Lab → · Contrast checker → · Palette generator →

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