#56198F#56198F

#56198F is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.2% C 0.177 H 301.5°. Best body text is #FFFFFF at 10.87:1 contrast (WCAG AA passes).

Color values

HEX#56198F
RGBrgb(86, 25, 143)
HSLhsl(271, 70%, 33%)
HSVhsv(271, 83%, 56%)
CMYKcmyk(39.9%, 82.5%, 0%, 43.9%)
CIE-LABlab(25.73, 49.20, -52.76)
CIE-LCHlch(25.73, 72.14, 313.00°)
OKLaboklab(38.23% 0.0924 -0.1507)
OKLCHoklch(38.23% 0.177 301.5)
XYZxyz(9.1421, 4.6568, 26.3985)
Luminance0.0466 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56198F #528F19
analogous
#1B198F #56198F #8F198D
triadic
#56198F #8F5619 #198F56
tetradic
#56198F #8F1B19 #528F19 #198D8F
square
#56198F #8F1B19 #528F19 #198D8F
split-complementary
#56198F #8D8F19 #198F1B
monochromatic
#170727 #37105B #56198F #7522C3 #9444DE

Accessibility & contrast

On white

10.87
#56198F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#56198F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #56198F
10.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56198F#FFFFFF#000000##FFFFFF
##56198F1.0010.871.9310.87
#FFFFFF10.871.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C92
Deuteranopia (green-blind)
#003C8D
Tritanopia (blue-blind)
#493A55
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #56198f;
/* rgb */ color: rgb(86, 25, 143);
/* oklch */ color: oklch(38.2% 0.177 301.5);
Tailwind
colors: {
  custom: {
    50: '#8c5eb1',
    500: '#56198f',
    950: '#000000',
  },
}
SCSS
$custom: #56198f;
$custom-light: #8c5eb1;
$custom-dark: #000000;
JSON
{
  "hex": "#56198f",
  "rgb": {
    "r": 86,
    "g": 25,
    "b": 143
  },
  "hsl": {
    "h": 271.017,
    "s": 70.238,
    "l": 32.941
  },
  "oklch": {
    "l": 0.38234,
    "c": 0.17682,
    "h": 301.5
  },
  "luminance": 0.04657
}

Semantic roles & 50–950 ramp

primary
#56198F
secondary
#80BF44
accent
#ED3B91
background
#F9F5FB
surface
#F1EAF6
border
#CBC6D0
text
#0D0511
muted
#7E7980

Preview Lab

Preview with #56198F

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

Preview Lab → · Contrast checker → · Palette generator →

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