#56398D#56398D

#56398D is a dark, vivid violet. Relative luminance 0.068; OKLCH L 42.2% C 0.134 H 296.1°. Best body text is #FFFFFF at 8.88:1 contrast (WCAG AA passes).

Color values

HEX#56398D
RGBrgb(86, 57, 141)
HSLhsl(261, 42%, 39%)
HSVhsv(261, 60%, 55%)
CMYKcmyk(39%, 59.6%, 0%, 44.7%)
CIE-LABlab(31.41, 32.53, -42.30)
CIE-LCHlch(31.41, 53.36, 307.56°)
OKLaboklab(42.25% 0.0589 -0.1202)
OKLCHoklch(42.25% 0.134 296.1)
XYZxyz(10.1074, 6.8276, 25.9795)
Luminance0.0683 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56398D #708D39
analogous
#39468D #56398D #80398D
triadic
#56398D #8D5639 #398D56
tetradic
#56398D #8D3946 #708D39 #398D80
square
#56398D #8D3946 #708D39 #398D80
split-complementary
#56398D #8D8039 #468D39
monochromatic
#211636 #3B2761 #56398D #714CB7 #9478C8

Accessibility & contrast

On white

8.88
#56398D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#56398D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #56398D
8.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56398D#FFFFFF#000000##FFFFFF
##56398D1.008.882.378.88
#FFFFFF8.881.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#094A90
Deuteranopia (green-blind)
#17498B
Tritanopia (blue-blind)
#494B5D
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #56398d;
/* rgb */ color: rgb(86, 57, 141);
/* oklch */ color: oklch(42.2% 0.134 296.1);
Tailwind
colors: {
  custom: {
    50: '#8970af',
    500: '#56398d',
    950: '#000000',
  },
}
SCSS
$custom: #56398d;
$custom-light: #8970af;
$custom-dark: #000000;
JSON
{
  "hex": "#56398d",
  "rgb": {
    "r": 86,
    "g": 57,
    "b": 141
  },
  "hsl": {
    "h": 260.714,
    "s": 42.424,
    "l": 38.824
  },
  "oklch": {
    "l": 0.42245,
    "c": 0.13384,
    "h": 296.1
  },
  "luminance": 0.06828
}

Semantic roles & 50–950 ramp

primary
#56398D
secondary
#9BB270
accent
#D256A7
background
#F8F6FA
surface
#F0ECF4
border
#CBC7CE
text
#0C0710
muted
#7D7A7F

Preview Lab

Preview with #56398D

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

Preview Lab → · Contrast checker → · Palette generator →

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