#56239B#56239B

#56239B is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.3% C 0.180 H 296.7°. Best body text is #FFFFFF at 9.96:1 contrast (WCAG AA passes).

Color values

HEX#56239B
RGBrgb(86, 35, 155)
HSLhsl(266, 63%, 37%)
HSVhsv(266, 77%, 61%)
CMYKcmyk(44.5%, 77.4%, 0%, 39.2%)
CIE-LABlab(28.24, 48.11, -56.04)
CIE-LCHlch(28.24, 73.86, 310.64°)
OKLaboklab(40.31% 0.0807 -0.1605)
OKLCHoklch(40.31% 0.18 296.7)
XYZxyz(10.3536, 5.5468, 31.5291)
Luminance0.0555 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56239B #689B23
analogous
#232C9B #56239B #92239B
triadic
#56239B #9B5623 #239B56
tetradic
#56239B #9B232C #689B23 #239B92
square
#56239B #9B232C #689B23 #239B92
split-complementary
#56239B #9B9223 #2C9B23
monochromatic
#1F0C37 #3A1869 #56239B #722ECD #935EDB

Accessibility & contrast

On white

9.96
#56239B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#56239B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #56239B
9.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56239B#FFFFFF#000000##FFFFFF
##56239B1.009.962.119.96
#FFFFFF9.961.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439E
Deuteranopia (green-blind)
#004199
Tritanopia (blue-blind)
#43435E
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #56239b;
/* rgb */ color: rgb(86, 35, 155);
/* oklch */ color: oklch(40.3% 0.180 296.7);
Tailwind
colors: {
  custom: {
    50: '#8d64b9',
    500: '#56239b',
    950: '#000000',
  },
}
SCSS
$custom: #56239b;
$custom-light: #8d64b9;
$custom-dark: #000000;
JSON
{
  "hex": "#56239b",
  "rgb": {
    "r": 86,
    "g": 35,
    "b": 155
  },
  "hsl": {
    "h": 265.5,
    "s": 63.158,
    "l": 37.255
  },
  "oklch": {
    "l": 0.40314,
    "c": 0.17964,
    "h": 296.7
  },
  "luminance": 0.05547
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #56239B

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

Preview Lab → · Contrast checker → · Palette generator →

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