#56198D#56198D

#56198D is a dark, vivid violet. Relative luminance 0.046; OKLCH L 38.1% C 0.175 H 302.2°. Best body text is #FFFFFF at 10.94:1 contrast (WCAG AA passes).

Color values

HEX#56198D
RGBrgb(86, 25, 141)
HSLhsl(272, 70%, 33%)
HSVhsv(272, 82%, 55%)
CMYKcmyk(39%, 82.3%, 0%, 44.7%)
CIE-LABlab(25.55, 48.72, -51.81)
CIE-LCHlch(25.55, 71.12, 313.24°)
OKLaboklab(38.05% 0.093 -0.148)
OKLCHoklch(38.05% 0.175 302.2)
XYZxyz(8.9919, 4.5967, 25.6077)
Luminance0.0460 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56198D #508D19
analogous
#1C198D #56198D #8D198A
triadic
#56198D #8D5619 #198D56
tetradic
#56198D #8D1C19 #508D19 #198A8D
square
#56198D #8D1C19 #508D19 #198A8D
split-complementary
#56198D #8A8D19 #198D1C
monochromatic
#170725 #361059 #56198D #7622C1 #9443DE

Accessibility & contrast

On white

10.94
#56198D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#56198D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #56198D
10.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56198D#FFFFFF#000000##FFFFFF
##56198D1.0010.941.9210.94
#FFFFFF10.941.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C90
Deuteranopia (green-blind)
#003C8B
Tritanopia (blue-blind)
#4A3954
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #56198d;
/* rgb */ color: rgb(86, 25, 141);
/* oklch */ color: oklch(38.1% 0.175 302.2);
Tailwind
colors: {
  custom: {
    50: '#8c5eaf',
    500: '#56198d',
    950: '#000000',
  },
}
SCSS
$custom: #56198d;
$custom-light: #8c5eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#56198d",
  "rgb": {
    "r": 86,
    "g": 25,
    "b": 141
  },
  "hsl": {
    "h": 271.552,
    "s": 69.88,
    "l": 32.549
  },
  "oklch": {
    "l": 0.38053,
    "c": 0.17478,
    "h": 302.2
  },
  "luminance": 0.04597
}

Semantic roles & 50–950 ramp

primary
#56198D
secondary
#7EBF43
accent
#ED3B8F
background
#F9F5FA
surface
#F1EAF5
border
#CBC6CF
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #56198D

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

Preview Lab → · Contrast checker → · Palette generator →

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