#56288F#56288F

#56288F is a dark, vivid violet. Relative luminance 0.055; OKLCH L 39.9% C 0.160 H 299.4°. Best body text is #FFFFFF at 10.02:1 contrast (WCAG AA passes).

Color values

HEX#56288F
RGBrgb(86, 40, 143)
HSLhsl(267, 56%, 36%)
HSVhsv(267, 72%, 56%)
CMYKcmyk(39.9%, 72%, 0%, 43.9%)
CIE-LABlab(28.06, 42.57, -48.96)
CIE-LCHlch(28.06, 64.88, 311.00°)
OKLaboklab(39.87% 0.0787 -0.1397)
OKLCHoklch(39.87% 0.16 299.4)
XYZxyz(9.5532, 5.4791, 26.5355)
Luminance0.0548 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56288F #618F28
analogous
#282D8F #56288F #89288F
triadic
#56288F #8F5628 #288F56
tetradic
#56288F #8F282D #618F28 #288F89
square
#56288F #8F282D #618F28 #288F89
split-complementary
#56288F #8F8928 #2D8F28
monochromatic
#1C0D2F #391B5F #56288F #7335BF #935FD2

Accessibility & contrast

On white

10.02
#56288F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#56288F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #56288F
10.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56288F#FFFFFF#000000##FFFFFF
##56288F1.0010.022.1010.02
#FFFFFF10.021.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004292
Deuteranopia (green-blind)
#00418D
Tritanopia (blue-blind)
#494158
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #56288f;
/* rgb */ color: rgb(86, 40, 143);
/* oklch */ color: oklch(39.9% 0.160 299.4);
Tailwind
colors: {
  custom: {
    50: '#8b66b1',
    500: '#56288f',
    950: '#000000',
  },
}
SCSS
$custom: #56288f;
$custom-light: #8b66b1;
$custom-dark: #000000;
JSON
{
  "hex": "#56288f",
  "rgb": {
    "r": 86,
    "g": 40,
    "b": 143
  },
  "hsl": {
    "h": 266.796,
    "s": 56.284,
    "l": 35.882
  },
  "oklch": {
    "l": 0.39868,
    "c": 0.16037,
    "h": 299.4
  },
  "luminance": 0.05479
}

Semantic roles & 50–950 ramp

primary
#56288F
secondary
#8EB85B
accent
#E0489C
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #56288F

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

Preview Lab → · Contrast checker → · Palette generator →

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