#56237C#56237C

#56237C is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.7% C 0.145 H 306.9°. Best body text is #FFFFFF at 10.90:1 contrast (WCAG AA passes).

Color values

HEX#56237C
RGBrgb(86, 35, 124)
HSLhsl(274, 56%, 31%)
HSVhsv(274, 72%, 49%)
CMYKcmyk(30.6%, 71.8%, 0%, 51.4%)
CIE-LABlab(25.67, 40.20, -40.95)
CIE-LCHlch(25.67, 57.39, 314.47°)
OKLaboklab(37.7% 0.0873 -0.1161)
OKLCHoklch(37.7% 0.145 306.9)
XYZxyz(8.0761, 4.6358, 19.5342)
Luminance0.0464 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56237C #497C23
analogous
#29237C #56237C #7C2375
triadic
#56237C #7C5623 #237C56
tetradic
#56237C #7C2923 #497C23 #23757C
square
#56237C #7C2923 #497C23 #23757C
split-complementary
#56237C #757C23 #237C29
monochromatic
#14081D #35164C #56237C #7730AC #964DCD

Accessibility & contrast

On white

10.90
#56237C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#56237C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #56237C
10.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56237C#FFFFFF#000000##FFFFFF
##56237C1.0010.901.9310.90
#FFFFFF10.901.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B7F
Deuteranopia (green-blind)
#093D7A
Tritanopia (blue-blind)
#50374D
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #56237c;
/* rgb */ color: rgb(86, 35, 124);
/* oklch */ color: oklch(37.7% 0.145 306.9);
Tailwind
colors: {
  custom: {
    50: '#8962a2',
    500: '#56237c',
    950: '#000000',
  },
}
SCSS
$custom: #56237c;
$custom-light: #8962a2;
$custom-dark: #000000;
JSON
{
  "hex": "#56237c",
  "rgb": {
    "r": 86,
    "g": 35,
    "b": 124
  },
  "hsl": {
    "h": 274.382,
    "s": 55.975,
    "l": 31.176
  },
  "oklch": {
    "l": 0.37697,
    "c": 0.14531,
    "h": 306.9
  },
  "luminance": 0.04636
}

Semantic roles & 50–950 ramp

primary
#56237C
secondary
#76AF4C
accent
#DF4989
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C050F
muted
#7D7A7F

Preview Lab

Preview with #56237C

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

Preview Lab → · Contrast checker → · Palette generator →

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