#56239A#56239A

#56239A is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.2% C 0.179 H 297.0°. Best body text is #FFFFFF at 9.99:1 contrast (WCAG AA passes).

Color values

HEX#56239A
RGBrgb(86, 35, 154)
HSLhsl(266, 63%, 37%)
HSVhsv(266, 77%, 60%)
CMYKcmyk(44.2%, 77.3%, 0%, 39.6%)
CIE-LABlab(28.15, 47.85, -55.58)
CIE-LCHlch(28.15, 73.34, 310.73°)
OKLaboklab(40.22% 0.081 -0.1591)
OKLCHoklch(40.22% 0.179 297)
XYZxyz(10.2700, 5.5134, 31.0887)
Luminance0.0551 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56239A #679A23
analogous
#232C9A #56239A #92239A
triadic
#56239A #9A5623 #239A56
tetradic
#56239A #9A232C #679A23 #239A92
square
#56239A #9A232C #679A23 #239A92
split-complementary
#56239A #9A9223 #2C9A23
monochromatic
#1E0C36 #3A1868 #56239A #722ECC #935DDA

Accessibility & contrast

On white

9.99
#56239A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#56239A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #56239A
9.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56239A#FFFFFF#000000##FFFFFF
##56239A1.009.992.109.99
#FFFFFF9.991.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF9.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439D
Deuteranopia (green-blind)
#004198
Tritanopia (blue-blind)
#44435D
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #56239a;
/* rgb */ color: rgb(86, 35, 154);
/* oklch */ color: oklch(40.2% 0.179 297.0);
Tailwind
colors: {
  custom: {
    50: '#8c64b9',
    500: '#56239a',
    950: '#000000',
  },
}
SCSS
$custom: #56239a;
$custom-light: #8c64b9;
$custom-dark: #000000;
JSON
{
  "hex": "#56239a",
  "rgb": {
    "r": 86,
    "g": 35,
    "b": 154
  },
  "hsl": {
    "h": 265.714,
    "s": 62.963,
    "l": 37.059
  },
  "oklch": {
    "l": 0.40224,
    "c": 0.17855,
    "h": 297
  },
  "luminance": 0.05514
}

Semantic roles & 50–950 ramp

primary
#56239A
secondary
#94BF5A
accent
#E642A0
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #56239A

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

Preview Lab → · Contrast checker → · Palette generator →

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