#56237A#56237A

#56237A is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.5% C 0.143 H 307.7°. Best body text is #FFFFFF at 10.95:1 contrast (WCAG AA passes).

Color values

HEX#56237A
RGBrgb(86, 35, 122)
HSLhsl(275, 55%, 31%)
HSVhsv(275, 71%, 48%)
CMYKcmyk(29.5%, 71.3%, 0%, 52.2%)
CIE-LABlab(25.52, 39.71, -39.93)
CIE-LCHlch(25.52, 56.31, 314.84°)
OKLaboklab(37.54% 0.0876 -0.1131)
OKLCHoklch(37.54% 0.143 307.7)
XYZxyz(7.9509, 4.5857, 18.8749)
Luminance0.0459 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56237A #477A23
analogous
#2A237A #56237A #7A2372
triadic
#56237A #7A5623 #237A56
tetradic
#56237A #7A2A23 #477A23 #23727A
square
#56237A #7A2A23 #477A23 #23727A
split-complementary
#56237A #727A23 #237A2A
monochromatic
#13081B #34154A #56237A #7831AA #974CCC

Accessibility & contrast

On white

10.95
#56237A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#56237A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #56237A
10.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56237A#FFFFFF#000000##FFFFFF
##56237A1.0010.951.9210.95
#FFFFFF10.951.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B7D
Deuteranopia (green-blind)
#0E3D78
Tritanopia (blue-blind)
#50364B
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #56237a;
/* rgb */ color: rgb(86, 35, 122);
/* oklch */ color: oklch(37.5% 0.143 307.7);
Tailwind
colors: {
  custom: {
    50: '#8962a1',
    500: '#56237a',
    950: '#000000',
  },
}
SCSS
$custom: #56237a;
$custom-light: #8962a1;
$custom-dark: #000000;
JSON
{
  "hex": "#56237a",
  "rgb": {
    "r": 86,
    "g": 35,
    "b": 122
  },
  "hsl": {
    "h": 275.172,
    "s": 55.414,
    "l": 30.784
  },
  "oklch": {
    "l": 0.37542,
    "c": 0.14308,
    "h": 307.7
  },
  "luminance": 0.04586
}

Semantic roles & 50–950 ramp

primary
#56237A
secondary
#74AD4C
accent
#DF4987
background
#F8F6FA
surface
#F0EBF3
border
#CBC6CD
text
#0C050F
muted
#7D7A7F

Preview Lab

Preview with #56237A

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

Preview Lab → · Contrast checker → · Palette generator →

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