#56168F#56168F

#56168F is a dark, vivid violet. Relative luminance 0.045; OKLCH L 38.0% C 0.179 H 301.8°. Best body text is #FFFFFF at 11.01:1 contrast (WCAG AA passes).

Color values

HEX#56168F
RGBrgb(86, 22, 143)
HSLhsl(272, 73%, 32%)
HSVhsv(272, 85%, 56%)
CMYKcmyk(39.9%, 84.6%, 0%, 43.9%)
CIE-LABlab(25.37, 50.27, -53.35)
CIE-LCHlch(25.37, 73.31, 313.30°)
OKLaboklab(37.98% 0.0946 -0.1525)
OKLCHoklch(37.98% 0.179 301.8)
XYZxyz(9.0814, 4.5354, 26.3782)
Luminance0.0454 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56168F #4F8F16
analogous
#1A168F #56168F #8F168B
triadic
#56168F #8F5616 #168F56
tetradic
#56168F #8F1A16 #4F8F16 #168B8F
square
#56168F #8F1A16 #4F8F16 #168B8F
split-complementary
#56168F #8B8F16 #168F1A
monochromatic
#160625 #360E5A #56168F #761EC4 #943EE1

Accessibility & contrast

On white

11.01
#56168F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#56168F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #56168F
11.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56168F#FFFFFF#000000##FFFFFF
##56168F1.0011.011.9111.01
#FFFFFF11.011.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B92
Deuteranopia (green-blind)
#003C8D
Tritanopia (blue-blind)
#493954
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #56168f;
/* rgb */ color: rgb(86, 22, 143);
/* oklch */ color: oklch(38.0% 0.179 301.8);
Tailwind
colors: {
  custom: {
    50: '#8c5db1',
    500: '#56168f',
    950: '#000000',
  },
}
SCSS
$custom: #56168f;
$custom-light: #8c5db1;
$custom-dark: #000000;
JSON
{
  "hex": "#56168f",
  "rgb": {
    "r": 86,
    "g": 22,
    "b": 143
  },
  "hsl": {
    "h": 271.736,
    "s": 73.333,
    "l": 32.353
  },
  "oklch": {
    "l": 0.37981,
    "c": 0.17944,
    "h": 301.8
  },
  "luminance": 0.04535
}

Semantic roles & 50–950 ramp

primary
#56168F
secondary
#7DC13F
accent
#F0388F
background
#F9F5FB
surface
#F1E9F6
border
#CBC5D0
text
#0D0511
muted
#7E7980

Preview Lab

Preview with #56168F

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

Preview Lab → · Contrast checker → · Palette generator →

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