#56289B#56289B

#56289B is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.9% C 0.174 H 296.0°. Best body text is #FFFFFF at 9.67:1 contrast (WCAG AA passes).

Color values

HEX#56289B
RGBrgb(86, 40, 155)
HSLhsl(264, 59%, 38%)
HSVhsv(264, 74%, 61%)
CMYKcmyk(44.5%, 74.2%, 0%, 39.2%)
CIE-LABlab(29.06, 45.77, -54.70)
CIE-LCHlch(29.06, 71.32, 309.92°)
OKLaboklab(40.89% 0.0762 -0.1566)
OKLCHoklch(40.89% 0.174 296)
XYZxyz(10.5114, 5.8623, 31.5817)
Luminance0.0586 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56289B #6D9B28
analogous
#28339B #56289B #8F289B
triadic
#56289B #9B5628 #289B56
tetradic
#56289B #9B2833 #6D9B28 #289B8F
square
#56289B #9B2833 #6D9B28 #289B8F
split-complementary
#56289B #9B8F28 #339B28
monochromatic
#200F3A #3B1B6A #56289B #7135CB #9366D7

Accessibility & contrast

On white

9.67
#56289B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#56289B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #56289B
9.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56289B#FFFFFF#000000##FFFFFF
##56289B1.009.672.179.67
#FFFFFF9.671.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459E
Deuteranopia (green-blind)
#004399
Tritanopia (blue-blind)
#43465F
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #56289b;
/* rgb */ color: rgb(86, 40, 155);
/* oklch */ color: oklch(40.9% 0.174 296.0);
Tailwind
colors: {
  custom: {
    50: '#8c66b9',
    500: '#56289b',
    950: '#000000',
  },
}
SCSS
$custom: #56289b;
$custom-light: #8c66b9;
$custom-dark: #000000;
JSON
{
  "hex": "#56289b",
  "rgb": {
    "r": 86,
    "g": 40,
    "b": 155
  },
  "hsl": {
    "h": 264,
    "s": 58.974,
    "l": 38.235
  },
  "oklch": {
    "l": 0.40893,
    "c": 0.17414,
    "h": 296
  },
  "luminance": 0.05863
}

Semantic roles & 50–950 ramp

primary
#56289B
secondary
#99BD61
accent
#E246A4
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #56289B

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

Preview Lab → · Contrast checker → · Palette generator →

#56289B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva