#56289C#56289C

#56289C is a dark, vivid violet. Relative luminance 0.059; OKLCH L 41.0% C 0.175 H 295.7°. Best body text is #FFFFFF at 9.64:1 contrast (WCAG AA passes).

Color values

HEX#56289C
RGBrgb(86, 40, 156)
HSLhsl(264, 59%, 38%)
HSVhsv(264, 74%, 61%)
CMYKcmyk(44.9%, 74.4%, 0%, 38.8%)
CIE-LABlab(29.15, 46.03, -55.16)
CIE-LCHlch(29.15, 71.85, 309.84°)
OKLaboklab(40.98% 0.076 -0.1579)
OKLCHoklch(40.98% 0.175 295.7)
XYZxyz(10.5957, 5.8961, 32.0258)
Luminance0.0590 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56289C #6E9C28
analogous
#28349C #56289C #90289C
triadic
#56289C #9C5628 #289C56
tetradic
#56289C #9C2834 #6E9C28 #289C90
square
#56289C #9C2834 #6E9C28 #289C90
split-complementary
#56289C #9C9028 #349C28
monochromatic
#200F3B #3B1C6B #56289C #7136CB #9367D8

Accessibility & contrast

On white

9.64
#56289C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#56289C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #56289C
9.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56289C#FFFFFF#000000##FFFFFF
##56289C1.009.642.189.64
#FFFFFF9.641.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459F
Deuteranopia (green-blind)
#00439A
Tritanopia (blue-blind)
#434660
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #56289c;
/* rgb */ color: rgb(86, 40, 156);
/* oklch */ color: oklch(41.0% 0.175 295.7);
Tailwind
colors: {
  custom: {
    50: '#8c66ba',
    500: '#56289c',
    950: '#000000',
  },
}
SCSS
$custom: #56289c;
$custom-light: #8c66ba;
$custom-dark: #000000;
JSON
{
  "hex": "#56289c",
  "rgb": {
    "r": 86,
    "g": 40,
    "b": 156
  },
  "hsl": {
    "h": 263.793,
    "s": 59.184,
    "l": 38.431
  },
  "oklch": {
    "l": 0.40981,
    "c": 0.17527,
    "h": 295.7
  },
  "luminance": 0.05896
}

Semantic roles & 50–950 ramp

primary
#56289C
secondary
#99BE62
accent
#E245A4
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #56289C

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

Preview Lab → · Contrast checker → · Palette generator →

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