#56237E#56237E

#56237E is a dark, vivid violet. Relative luminance 0.047; OKLCH L 37.9% C 0.148 H 306.2°. Best body text is #FFFFFF at 10.84:1 contrast (WCAG AA passes).

Color values

HEX#56237E
RGBrgb(86, 35, 126)
HSLhsl(274, 57%, 32%)
HSVhsv(274, 72%, 49%)
CMYKcmyk(31.7%, 72.2%, 0%, 50.6%)
CIE-LABlab(25.82, 40.70, -41.97)
CIE-LCHlch(25.82, 58.46, 314.12°)
OKLaboklab(37.85% 0.087 -0.1191)
OKLCHoklch(37.85% 0.148 306.2)
XYZxyz(8.2039, 4.6869, 20.2071)
Luminance0.0469 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56237E #4B7E23
analogous
#28237E #56237E #7E2379
triadic
#56237E #7E5623 #237E56
tetradic
#56237E #7E2823 #4B7E23 #23797E
square
#56237E #7E2823 #4B7E23 #23797E
split-complementary
#56237E #797E23 #237E28
monochromatic
#15081E #35164E #56237E #7730AE #954ECE

Accessibility & contrast

On white

10.84
#56237E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#56237E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #56237E
10.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56237E#FFFFFF#000000##FFFFFF
##56237E1.0010.841.9410.84
#FFFFFF10.841.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C81
Deuteranopia (green-blind)
#043D7C
Tritanopia (blue-blind)
#4F384E
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #56237e;
/* rgb */ color: rgb(86, 35, 126);
/* oklch */ color: oklch(37.9% 0.148 306.2);
Tailwind
colors: {
  custom: {
    50: '#8a62a4',
    500: '#56237e',
    950: '#000000',
  },
}
SCSS
$custom: #56237e;
$custom-light: #8a62a4;
$custom-dark: #000000;
JSON
{
  "hex": "#56237e",
  "rgb": {
    "r": 86,
    "g": 35,
    "b": 126
  },
  "hsl": {
    "h": 273.626,
    "s": 56.522,
    "l": 31.569
  },
  "oklch": {
    "l": 0.37854,
    "c": 0.14755,
    "h": 306.2
  },
  "luminance": 0.04687
}

Semantic roles & 50–950 ramp

primary
#56237E
secondary
#78B04C
accent
#E0488B
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C050F
muted
#7D7A7F

Preview Lab

Preview with #56237E

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

Preview Lab → · Contrast checker → · Palette generator →

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