#56289A#56289A

#56289A is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.8% C 0.173 H 296.2°. Best body text is #FFFFFF at 9.70:1 contrast (WCAG AA passes).

Color values

HEX#56289A
RGBrgb(86, 40, 154)
HSLhsl(264, 59%, 38%)
HSVhsv(264, 74%, 60%)
CMYKcmyk(44.2%, 74%, 0%, 39.6%)
CIE-LABlab(28.98, 45.50, -54.23)
CIE-LCHlch(28.98, 70.78, 310.00°)
OKLaboklab(40.81% 0.0765 -0.1552)
OKLCHoklch(40.81% 0.173 296.2)
XYZxyz(10.4277, 5.8289, 31.1413)
Luminance0.0583 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56289A #6C9A28
analogous
#28339A #56289A #8F289A
triadic
#56289A #9A5628 #289A56
tetradic
#56289A #9A2833 #6C9A28 #289A8F
square
#56289A #9A2833 #6C9A28 #289A8F
split-complementary
#56289A #9A8F28 #339A28
monochromatic
#200F39 #3B1B69 #56289A #7135CA #9365D7

Accessibility & contrast

On white

9.70
#56289A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #56289A
9.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56289A#FFFFFF#000000##FFFFFF
##56289A1.009.702.179.70
#FFFFFF9.701.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459D
Deuteranopia (green-blind)
#004398
Tritanopia (blue-blind)
#44455F
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #56289a;
/* rgb */ color: rgb(86, 40, 154);
/* oklch */ color: oklch(40.8% 0.173 296.2);
Tailwind
colors: {
  custom: {
    50: '#8c66b9',
    500: '#56289a',
    950: '#000000',
  },
}
SCSS
$custom: #56289a;
$custom-light: #8c66b9;
$custom-dark: #000000;
JSON
{
  "hex": "#56289a",
  "rgb": {
    "r": 86,
    "g": 40,
    "b": 154
  },
  "hsl": {
    "h": 264.211,
    "s": 58.763,
    "l": 38.039
  },
  "oklch": {
    "l": 0.40806,
    "c": 0.17299,
    "h": 296.2
  },
  "luminance": 0.05829
}

Semantic roles & 50–950 ramp

primary
#56289A
secondary
#98BD61
accent
#E246A3
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #56289A

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

Preview Lab → · Contrast checker → · Palette generator →

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