#56248E#56248E

#56248E is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.3% C 0.164 H 300.4°. Best body text is #FFFFFF at 10.30:1 contrast (WCAG AA passes).

Color values

HEX#56248E
RGBrgb(86, 36, 142)
HSLhsl(268, 60%, 35%)
HSVhsv(268, 75%, 56%)
CMYKcmyk(39.4%, 74.6%, 0%, 44.3%)
CIE-LABlab(27.28, 44.27, -49.61)
CIE-LCHlch(27.28, 66.49, 311.74°)
OKLaboklab(39.29% 0.083 -0.1416)
OKLCHoklch(39.29% 0.164 300.4)
XYZxyz(9.3499, 5.1931, 26.0957)
Luminance0.0519 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56248E #5C8E24
analogous
#24278E #56248E #8B248E
triadic
#56248E #8E5624 #248E56
tetradic
#56248E #8E2427 #5C8E24 #248E8B
square
#56248E #8E2427 #5C8E24 #248E8B
split-complementary
#56248E #8E8B24 #278E24
monochromatic
#1B0B2C #38185D #56248E #7430BF #9358D5

Accessibility & contrast

On white

10.30
#56248E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#56248E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #56248E
10.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56248E#FFFFFF#000000##FFFFFF
##56248E1.0010.302.0410.30
#FFFFFF10.301.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004091
Deuteranopia (green-blind)
#00408C
Tritanopia (blue-blind)
#493F57
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #56248e;
/* rgb */ color: rgb(86, 36, 142);
/* oklch */ color: oklch(39.3% 0.164 300.4);
Tailwind
colors: {
  custom: {
    50: '#8b64b0',
    500: '#56248e',
    950: '#000000',
  },
}
SCSS
$custom: #56248e;
$custom-light: #8b64b0;
$custom-dark: #000000;
JSON
{
  "hex": "#56248e",
  "rgb": {
    "r": 86,
    "g": 36,
    "b": 142
  },
  "hsl": {
    "h": 268.302,
    "s": 59.551,
    "l": 34.902
  },
  "oklch": {
    "l": 0.39289,
    "c": 0.16415,
    "h": 300.4
  },
  "luminance": 0.05193
}

Semantic roles & 50–950 ramp

primary
#56248E
secondary
#8AB955
accent
#E34598
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #56248E

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

Preview Lab → · Contrast checker → · Palette generator →

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