#56288C#56288C

#56288C is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.6% C 0.157 H 300.3°. Best body text is #FFFFFF at 10.11:1 contrast (WCAG AA passes).

Color values

HEX#56288C
RGBrgb(86, 40, 140)
HSLhsl(268, 56%, 35%)
HSVhsv(268, 71%, 55%)
CMYKcmyk(38.6%, 71.4%, 0%, 45.1%)
CIE-LABlab(27.82, 41.78, -47.50)
CIE-LCHlch(27.82, 63.26, 311.33°)
OKLaboklab(39.62% 0.0793 -0.1354)
OKLCHoklch(39.62% 0.157 300.3)
XYZxyz(9.3290, 5.3894, 25.3546)
Luminance0.0539 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56288C #5E8C28
analogous
#282C8C #56288C #88288C
triadic
#56288C #8C5628 #288C56
tetradic
#56288C #8C282C #5E8C28 #288C88
square
#56288C #8C282C #5E8C28 #288C88
split-complementary
#56288C #8C8828 #2C8C28
monochromatic
#1C0D2D #391A5C #56288C #7336BC #935ED1

Accessibility & contrast

On white

10.11
#56288C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#56288C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #56288C
10.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56288C#FFFFFF#000000##FFFFFF
##56288C1.0010.112.0810.11
#FFFFFF10.111.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00418F
Deuteranopia (green-blind)
#00418A
Tritanopia (blue-blind)
#4A4057
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #56288c;
/* rgb */ color: rgb(86, 40, 140);
/* oklch */ color: oklch(39.6% 0.157 300.3);
Tailwind
colors: {
  custom: {
    50: '#8b66ae',
    500: '#56288c',
    950: '#000000',
  },
}
SCSS
$custom: #56288c;
$custom-light: #8b66ae;
$custom-dark: #000000;
JSON
{
  "hex": "#56288c",
  "rgb": {
    "r": 86,
    "g": 40,
    "b": 140
  },
  "hsl": {
    "h": 267.6,
    "s": 55.556,
    "l": 35.294
  },
  "oklch": {
    "l": 0.39621,
    "c": 0.15691,
    "h": 300.3
  },
  "luminance": 0.05389
}

Semantic roles & 50–950 ramp

primary
#56288C
secondary
#8CB65A
accent
#DF499A
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #56288C

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

Preview Lab → · Contrast checker → · Palette generator →

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