#56258B#56258B

#56258B is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.2% C 0.160 H 301.2°. Best body text is #FFFFFF at 10.33:1 contrast (WCAG AA passes).

Color values

HEX#56258B
RGBrgb(86, 37, 139)
HSLhsl(269, 58%, 35%)
HSVhsv(269, 73%, 55%)
CMYKcmyk(38.1%, 73.4%, 0%, 45.5%)
CIE-LABlab(27.20, 43.01, -47.88)
CIE-LCHlch(27.20, 64.36, 311.94°)
OKLaboklab(39.16% 0.0826 -0.1365)
OKLCHoklch(39.16% 0.16 301.2)
XYZxyz(9.1584, 5.1656, 24.9356)
Luminance0.0517 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56258B #5A8B25
analogous
#25278B #56258B #89258B
triadic
#56258B #8B5625 #258B56
tetradic
#56258B #8B2527 #5A8B25 #258B89
square
#56258B #8B2527 #5A8B25 #258B89
split-complementary
#56258B #8B8925 #278B25
monochromatic
#1A0B2A #38185B #56258B #7432BB #9358D3

Accessibility & contrast

On white

10.33
#56258B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#56258B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #56258B
10.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56258B#FFFFFF#000000##FFFFFF
##56258B1.0010.332.0310.33
#FFFFFF10.331.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408E
Deuteranopia (green-blind)
#004089
Tritanopia (blue-blind)
#4A3E55
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #56258b;
/* rgb */ color: rgb(86, 37, 139);
/* oklch */ color: oklch(39.2% 0.160 301.2);
Tailwind
colors: {
  custom: {
    50: '#8b64ae',
    500: '#56258b',
    950: '#000000',
  },
}
SCSS
$custom: #56258b;
$custom-light: #8b64ae;
$custom-dark: #000000;
JSON
{
  "hex": "#56258b",
  "rgb": {
    "r": 86,
    "g": 37,
    "b": 139
  },
  "hsl": {
    "h": 268.824,
    "s": 57.955,
    "l": 34.51
  },
  "oklch": {
    "l": 0.39158,
    "c": 0.15957,
    "h": 301.2
  },
  "luminance": 0.05166
}

Semantic roles & 50–950 ramp

primary
#56258B
secondary
#88B755
accent
#E14797
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #56258B

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

Preview Lab → · Contrast checker → · Palette generator →

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