#56148C#56148C

#56148C is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.5% C 0.178 H 303.0°. Best body text is #FFFFFF at 11.20:1 contrast (WCAG AA passes).

Color values

HEX#56148C
RGBrgb(86, 20, 140)
HSLhsl(273, 75%, 31%)
HSVhsv(273, 86%, 55%)
CMYKcmyk(38.6%, 85.7%, 0%, 45.1%)
CIE-LABlab(24.87, 50.23, -52.31)
CIE-LCHlch(24.87, 72.52, 313.83°)
OKLaboklab(37.55% 0.097 -0.1494)
OKLCHoklch(37.55% 0.178 303)
XYZxyz(8.8204, 4.3722, 25.1851)
Luminance0.0437 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56148C #4A8C14
analogous
#1A148C #56148C #8C1486
triadic
#56148C #8C5614 #148C56
tetradic
#56148C #8C1A14 #4A8C14 #14868C
square
#56148C #8C1A14 #4A8C14 #14868C
split-complementary
#56148C #868C14 #148C1A
monochromatic
#140521 #350C56 #56148C #771CC2 #9638E3

Accessibility & contrast

On white

11.20
#56148C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#56148C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #56148C
11.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56148C#FFFFFF#000000##FFFFFF
##56148C1.0011.201.8711.20
#FFFFFF11.201.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8F
Deuteranopia (green-blind)
#003B8A
Tritanopia (blue-blind)
#4B3752
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #56148c;
/* rgb */ color: rgb(86, 20, 140);
/* oklch */ color: oklch(37.5% 0.178 303.0);
Tailwind
colors: {
  custom: {
    50: '#8c5caf',
    500: '#56148c',
    950: '#000000',
  },
}
SCSS
$custom: #56148c;
$custom-light: #8c5caf;
$custom-dark: #000000;
JSON
{
  "hex": "#56148c",
  "rgb": {
    "r": 86,
    "g": 20,
    "b": 140
  },
  "hsl": {
    "h": 273,
    "s": 75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.37549,
    "c": 0.17812,
    "h": 303
  },
  "luminance": 0.04372
}

Semantic roles & 50–950 ramp

primary
#56148C
secondary
#77C03C
accent
#F2368B
background
#F9F5FA
surface
#F1E9F5
border
#CBC5CF
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #56148C

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

Preview Lab → · Contrast checker → · Palette generator →

#56148C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva