#56197E#56197E

#56197E is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.7% C 0.160 H 307.5°. Best body text is #FFFFFF at 11.44:1 contrast (WCAG AA passes).

Color values

HEX#56197E
RGBrgb(86, 25, 126)
HSLhsl(276, 67%, 30%)
HSVhsv(276, 80%, 49%)
CMYKcmyk(31.7%, 80.2%, 0%, 50.6%)
CIE-LABlab(24.26, 45.14, -44.51)
CIE-LCHlch(24.26, 63.40, 315.40°)
OKLaboklab(36.75% 0.0972 -0.1265)
OKLCHoklch(36.75% 0.16 307.5)
XYZxyz(7.9505, 4.1802, 20.1226)
Luminance0.0418 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56197E #417E19
analogous
#24197E #56197E #7E1973
triadic
#56197E #7E5619 #197E56
tetradic
#56197E #7E2419 #417E19 #19737E
square
#56197E #7E2419 #417E19 #19737E
split-complementary
#56197E #737E19 #197E24
monochromatic
#11051A #330F4B #56197E #7923B1 #993AD8

Accessibility & contrast

On white

11.44
#56197E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #56197E
11.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56197E#FFFFFF#000000##FFFFFF
##56197E1.0011.441.8411.44
#FFFFFF11.441.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.441.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #56197e;
/* rgb */ color: rgb(86, 25, 126);
/* oklch */ color: oklch(36.7% 0.160 307.5);
Tailwind
colors: {
  custom: {
    50: '#8a5da4',
    500: '#56197e',
    950: '#000000',
  },
}
SCSS
$custom: #56197e;
$custom-light: #8a5da4;
$custom-dark: #000000;
JSON
{
  "hex": "#56197e",
  "rgb": {
    "r": 86,
    "g": 25,
    "b": 126
  },
  "hsl": {
    "h": 276.238,
    "s": 66.887,
    "l": 29.608
  },
  "oklch": {
    "l": 0.36747,
    "c": 0.15956,
    "h": 307.5
  },
  "luminance": 0.0418
}

Semantic roles & 50–950 ramp

primary
#56197E
secondary
#6EB241
accent
#EA3E82
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #56197E

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

Preview Lab → · Contrast checker → · Palette generator →

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