#56237B#56237B

#56237B is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.6% C 0.144 H 307.3°. Best body text is #FFFFFF at 10.92:1 contrast (WCAG AA passes).

Color values

HEX#56237B
RGBrgb(86, 35, 123)
HSLhsl(275, 56%, 31%)
HSVhsv(275, 72%, 48%)
CMYKcmyk(30.1%, 71.5%, 0%, 51.8%)
CIE-LABlab(25.60, 39.95, -40.44)
CIE-LCHlch(25.60, 56.85, 314.65°)
OKLaboklab(37.62% 0.0875 -0.1146)
OKLCHoklch(37.62% 0.144 307.3)
XYZxyz(8.0132, 4.6107, 19.2029)
Luminance0.0461 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56237B #487B23
analogous
#2A237B #56237B #7B2374
triadic
#56237B #7B5623 #237B56
tetradic
#56237B #7B2A23 #487B23 #23747B
square
#56237B #7B2A23 #487B23 #23747B
split-complementary
#56237B #747B23 #237B2A
monochromatic
#13081C #35154B #56237B #7731AB #964CCC

Accessibility & contrast

On white

10.92
#56237B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #56237B
10.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56237B#FFFFFF#000000##FFFFFF
##56237B1.0010.921.9210.92
#FFFFFF10.921.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B7E
Deuteranopia (green-blind)
#0B3D79
Tritanopia (blue-blind)
#50374C
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #56237b;
/* rgb */ color: rgb(86, 35, 123);
/* oklch */ color: oklch(37.6% 0.144 307.3);
Tailwind
colors: {
  custom: {
    50: '#8962a2',
    500: '#56237b',
    950: '#000000',
  },
}
SCSS
$custom: #56237b;
$custom-light: #8962a2;
$custom-dark: #000000;
JSON
{
  "hex": "#56237b",
  "rgb": {
    "r": 86,
    "g": 35,
    "b": 123
  },
  "hsl": {
    "h": 274.773,
    "s": 55.696,
    "l": 30.98
  },
  "oklch": {
    "l": 0.37619,
    "c": 0.14419,
    "h": 307.3
  },
  "luminance": 0.04611
}

Semantic roles & 50–950 ramp

primary
#56237B
secondary
#75AE4C
accent
#DF4988
background
#F8F6FA
surface
#F0EBF3
border
#CBC6CD
text
#0C050F
muted
#7D7A7F

Preview Lab

Preview with #56237B

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

Preview Lab → · Contrast checker → · Palette generator →

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