#56239C#56239C

#56239C is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.4% C 0.181 H 296.4°. Best body text is #FFFFFF at 9.92:1 contrast (WCAG AA passes).

Color values

HEX#56239C
RGBrgb(86, 35, 156)
HSLhsl(265, 63%, 37%)
HSVhsv(265, 78%, 61%)
CMYKcmyk(44.9%, 77.6%, 0%, 38.8%)
CIE-LABlab(28.33, 48.37, -56.51)
CIE-LCHlch(28.33, 74.38, 310.56°)
OKLaboklab(40.4% 0.0804 -0.1618)
OKLCHoklch(40.4% 0.181 296.4)
XYZxyz(10.4379, 5.5806, 31.9733)
Luminance0.0558 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56239C #699C23
analogous
#232D9C #56239C #92239C
triadic
#56239C #9C5623 #239C56
tetradic
#56239C #9C232D #699C23 #239C92
square
#56239C #9C232D #699C23 #239C92
split-complementary
#56239C #9C9223 #2D9C23
monochromatic
#1F0D38 #3A186A #56239C #722ECE #935EDB

Accessibility & contrast

On white

9.92
#56239C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#56239C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #56239C
9.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56239C#FFFFFF#000000##FFFFFF
##56239C1.009.922.129.92
#FFFFFF9.921.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439F
Deuteranopia (green-blind)
#00419A
Tritanopia (blue-blind)
#43445E
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #56239c;
/* rgb */ color: rgb(86, 35, 156);
/* oklch */ color: oklch(40.4% 0.181 296.4);
Tailwind
colors: {
  custom: {
    50: '#8d64ba',
    500: '#56239c',
    950: '#000000',
  },
}
SCSS
$custom: #56239c;
$custom-light: #8d64ba;
$custom-dark: #000000;
JSON
{
  "hex": "#56239c",
  "rgb": {
    "r": 86,
    "g": 35,
    "b": 156
  },
  "hsl": {
    "h": 265.289,
    "s": 63.351,
    "l": 37.451
  },
  "oklch": {
    "l": 0.40404,
    "c": 0.18073,
    "h": 296.4
  },
  "luminance": 0.05581
}

Semantic roles & 50–950 ramp

primary
#56239C
secondary
#95C05B
accent
#E641A1
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #56239C

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

Preview Lab → · Contrast checker → · Palette generator →

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