#56188F#56188F

#56188F is a dark, vivid violet. Relative luminance 0.046; OKLCH L 38.1% C 0.178 H 301.6°. Best body text is #FFFFFF at 10.92:1 contrast (WCAG AA passes).

Color values

HEX#56188F
RGBrgb(86, 24, 143)
HSLhsl(271, 71%, 33%)
HSVhsv(271, 83%, 56%)
CMYKcmyk(39.9%, 83.2%, 0%, 43.9%)
CIE-LABlab(25.61, 49.57, -52.96)
CIE-LCHlch(25.61, 72.54, 313.11°)
OKLaboklab(38.15% 0.0932 -0.1514)
OKLCHoklch(38.15% 0.178 301.6)
XYZxyz(9.1211, 4.6148, 26.3915)
Luminance0.0461 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56188F #518F18
analogous
#1B188F #56188F #8F188C
triadic
#56188F #8F5618 #188F56
tetradic
#56188F #8F1B18 #518F18 #188C8F
square
#56188F #8F1B18 #518F18 #188C8F
split-complementary
#56188F #8C8F18 #188F1B
monochromatic
#170626 #360F5B #56188F #7621C3 #9442DF

Accessibility & contrast

On white

10.92
#56188F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#56188F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #56188F
10.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56188F#FFFFFF#000000##FFFFFF
##56188F1.0010.921.9210.92
#FFFFFF10.921.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.921.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: #56188f;
/* rgb */ color: rgb(86, 24, 143);
/* oklch */ color: oklch(38.1% 0.178 301.6);
Tailwind
colors: {
  custom: {
    50: '#8c5eb1',
    500: '#56188f',
    950: '#000000',
  },
}
SCSS
$custom: #56188f;
$custom-light: #8c5eb1;
$custom-dark: #000000;
JSON
{
  "hex": "#56188f",
  "rgb": {
    "r": 86,
    "g": 24,
    "b": 143
  },
  "hsl": {
    "h": 271.261,
    "s": 71.257,
    "l": 32.745
  },
  "oklch": {
    "l": 0.38147,
    "c": 0.17772,
    "h": 301.6
  },
  "luminance": 0.04615
}

Semantic roles & 50–950 ramp

primary
#56188F
secondary
#7FC043
accent
#EE3A90
background
#F9F5FB
surface
#F1E9F6
border
#CBC5D0
text
#0D0511
muted
#7E7980

Preview Lab

Preview with #56188F

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

Preview Lab → · Contrast checker → · Palette generator →

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