#56238E#56238E

#56238E is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.2% C 0.165 H 300.5°. Best body text is #FFFFFF at 10.36:1 contrast (WCAG AA passes).

Color values

HEX#56238E
RGBrgb(86, 35, 142)
HSLhsl(269, 60%, 35%)
HSVhsv(269, 75%, 56%)
CMYKcmyk(39.4%, 75.4%, 0%, 44.3%)
CIE-LABlab(27.11, 44.74, -49.89)
CIE-LCHlch(27.11, 67.01, 311.89°)
OKLaboklab(39.17% 0.084 -0.1424)
OKLCHoklch(39.17% 0.165 300.5)
XYZxyz(9.3201, 5.1334, 26.0858)
Luminance0.0513 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56238E #5B8E23
analogous
#23268E #56238E #8C238E
triadic
#56238E #8E5623 #238E56
tetradic
#56238E #8E2326 #5B8E23 #238E8C
square
#56238E #8E2326 #5B8E23 #238E8C
split-complementary
#56238E #8E8C23 #268E23
monochromatic
#1B0B2C #38175D #56238E #742FBF #9356D5

Accessibility & contrast

On white

10.36
#56238E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#56238E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #56238E
10.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56238E#FFFFFF#000000##FFFFFF
##56238E1.0010.362.0310.36
#FFFFFF10.361.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004091
Deuteranopia (green-blind)
#003F8C
Tritanopia (blue-blind)
#493E57
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #56238e;
/* rgb */ color: rgb(86, 35, 142);
/* oklch */ color: oklch(39.2% 0.165 300.5);
Tailwind
colors: {
  custom: {
    50: '#8b63b0',
    500: '#56238e',
    950: '#000000',
  },
}
SCSS
$custom: #56238e;
$custom-light: #8b63b0;
$custom-dark: #000000;
JSON
{
  "hex": "#56238e",
  "rgb": {
    "r": 86,
    "g": 35,
    "b": 142
  },
  "hsl": {
    "h": 268.598,
    "s": 60.452,
    "l": 34.706
  },
  "oklch": {
    "l": 0.39172,
    "c": 0.16532,
    "h": 300.5
  },
  "luminance": 0.05133
}

Semantic roles & 50–950 ramp

primary
#56238E
secondary
#89B953
accent
#E44498
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #56238E

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

Preview Lab → · Contrast checker → · Palette generator →

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