#56197B#56197B

#56197B is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.5% C 0.157 H 308.7°. Best body text is #FFFFFF at 11.53:1 contrast (WCAG AA passes).

Color values

HEX#56197B
RGBrgb(86, 25, 123)
HSLhsl(277, 66%, 29%)
HSVhsv(277, 80%, 48%)
CMYKcmyk(30.1%, 79.7%, 0%, 51.8%)
CIE-LABlab(24.01, 44.44, -43.01)
CIE-LCHlch(24.01, 61.84, 315.94°)
OKLaboklab(36.5% 0.0979 -0.1221)
OKLCHoklch(36.5% 0.157 308.7)
XYZxyz(7.7598, 4.1039, 19.1184)
Luminance0.0410 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56197B #3E7B19
analogous
#25197B #56197B #7B196F
triadic
#56197B #7B5619 #197B56
tetradic
#56197B #7B2519 #3E7B19 #196F7B
square
#56197B #7B2519 #3E7B19 #196F7B
split-complementary
#56197B #6F7B19 #197B25
monochromatic
#120519 #320F48 #56197B #7A23AE #9B38D7

Accessibility & contrast

On white

11.53
#56197B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#56197B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #56197B
11.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56197B#FFFFFF#000000##FFFFFF
##56197B1.0011.531.8211.53
#FFFFFF11.531.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377E
Deuteranopia (green-blind)
#003A79
Tritanopia (blue-blind)
#503149
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #56197b;
/* rgb */ color: rgb(86, 25, 123);
/* oklch */ color: oklch(36.5% 0.157 308.7);
Tailwind
colors: {
  custom: {
    50: '#8a5da2',
    500: '#56197b',
    950: '#000000',
  },
}
SCSS
$custom: #56197b;
$custom-light: #8a5da2;
$custom-dark: #000000;
JSON
{
  "hex": "#56197b",
  "rgb": {
    "r": 86,
    "g": 25,
    "b": 123
  },
  "hsl": {
    "h": 277.347,
    "s": 66.216,
    "l": 29.02
  },
  "oklch": {
    "l": 0.36497,
    "c": 0.15652,
    "h": 308.7
  },
  "luminance": 0.04104
}

Semantic roles & 50–950 ramp

primary
#56197B
secondary
#6AAF40
accent
#E93F7F
background
#F8F5FA
surface
#F0E9F3
border
#CBC5CD
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #56197B

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

Preview Lab → · Contrast checker → · Palette generator →

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