#56238B#56238B

#56238B is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.9% C 0.162 H 301.5°. Best body text is #FFFFFF at 10.45:1 contrast (WCAG AA passes).

Color values

HEX#56238B
RGBrgb(86, 35, 139)
HSLhsl(269, 60%, 34%)
HSVhsv(269, 75%, 55%)
CMYKcmyk(38.1%, 74.8%, 0%, 45.5%)
CIE-LABlab(26.86, 43.97, -48.43)
CIE-LCHlch(26.86, 65.42, 312.24°)
OKLaboklab(38.92% 0.0847 -0.1381)
OKLCHoklch(38.92% 0.162 301.5)
XYZxyz(9.0979, 5.0445, 24.9155)
Luminance0.0505 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56238B #588B23
analogous
#23248B #56238B #8A238B
triadic
#56238B #8B5623 #238B56
tetradic
#56238B #8B2324 #588B23 #238B8A
square
#56238B #8B2324 #588B23 #238B8A
split-complementary
#56238B #8B8A23 #248B23
monochromatic
#1A0A29 #38175A #56238B #742FBC #9354D4

Accessibility & contrast

On white

10.45
#56238B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#56238B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #56238B
10.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56238B#FFFFFF#000000##FFFFFF
##56238B1.0010.452.0110.45
#FFFFFF10.451.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8E
Deuteranopia (green-blind)
#003F89
Tritanopia (blue-blind)
#4A3D55
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #56238b;
/* rgb */ color: rgb(86, 35, 139);
/* oklch */ color: oklch(38.9% 0.162 301.5);
Tailwind
colors: {
  custom: {
    50: '#8b63ae',
    500: '#56238b',
    950: '#000000',
  },
}
SCSS
$custom: #56238b;
$custom-light: #8b63ae;
$custom-dark: #000000;
JSON
{
  "hex": "#56238b",
  "rgb": {
    "r": 86,
    "g": 35,
    "b": 139
  },
  "hsl": {
    "h": 269.423,
    "s": 59.77,
    "l": 34.118
  },
  "oklch": {
    "l": 0.38917,
    "c": 0.162,
    "h": 301.5
  },
  "luminance": 0.05045
}

Semantic roles & 50–950 ramp

primary
#56238B
secondary
#86B852
accent
#E34595
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0510
muted
#7D7A7F

Preview Lab

Preview with #56238B

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

Preview Lab → · Contrast checker → · Palette generator →

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