#56288D#56288D

#56288D is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.7% C 0.158 H 300.0°. Best body text is #FFFFFF at 10.08:1 contrast (WCAG AA passes).

Color values

HEX#56288D
RGBrgb(86, 40, 141)
HSLhsl(267, 56%, 35%)
HSVhsv(267, 72%, 55%)
CMYKcmyk(39%, 71.6%, 0%, 44.7%)
CIE-LABlab(27.90, 42.04, -47.99)
CIE-LCHlch(27.90, 63.80, 311.22°)
OKLaboklab(39.7% 0.0791 -0.1369)
OKLCHoklch(39.7% 0.158 300)
XYZxyz(9.4031, 5.4190, 25.7447)
Luminance0.0542 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56288D #5F8D28
analogous
#282C8D #56288D #88288D
triadic
#56288D #8D5628 #288D56
tetradic
#56288D #8D282C #5F8D28 #288D88
square
#56288D #8D282C #5F8D28 #288D88
split-complementary
#56288D #8D8828 #2C8D28
monochromatic
#1C0D2E #391A5D #56288D #7336BD #935ED1

Accessibility & contrast

On white

10.08
#56288D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #56288D
10.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56288D#FFFFFF#000000##FFFFFF
##56288D1.0010.082.0810.08
#FFFFFF10.081.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.081.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #56288d;
/* rgb */ color: rgb(86, 40, 141);
/* oklch */ color: oklch(39.7% 0.158 300.0);
Tailwind
colors: {
  custom: {
    50: '#8b66af',
    500: '#56288d',
    950: '#000000',
  },
}
SCSS
$custom: #56288d;
$custom-light: #8b66af;
$custom-dark: #000000;
JSON
{
  "hex": "#56288d",
  "rgb": {
    "r": 86,
    "g": 40,
    "b": 141
  },
  "hsl": {
    "h": 267.327,
    "s": 55.801,
    "l": 35.49
  },
  "oklch": {
    "l": 0.39703,
    "c": 0.15806,
    "h": 300
  },
  "luminance": 0.05419
}

Semantic roles & 50–950 ramp

primary
#56288D
secondary
#8DB75A
accent
#DF499B
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #56288D

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

Preview Lab → · Contrast checker → · Palette generator →

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