#56258A#56258A

#56258A is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.1% C 0.158 H 301.5°. Best body text is #FFFFFF at 10.36:1 contrast (WCAG AA passes).

Color values

HEX#56258A
RGBrgb(86, 37, 138)
HSLhsl(269, 58%, 34%)
HSVhsv(269, 73%, 54%)
CMYKcmyk(37.7%, 73.2%, 0%, 45.9%)
CIE-LABlab(27.12, 42.76, -47.39)
CIE-LCHlch(27.12, 63.82, 312.06°)
OKLaboklab(39.07% 0.0828 -0.1351)
OKLCHoklch(39.07% 0.158 301.5)
XYZxyz(9.0857, 5.1365, 24.5526)
Luminance0.0514 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56258A #598A25
analogous
#25278A #56258A #89258A
triadic
#56258A #8A5625 #258A56
tetradic
#56258A #8A2527 #598A25 #258A89
square
#56258A #8A2527 #598A25 #258A89
split-complementary
#56258A #8A8925 #278A25
monochromatic
#1A0B29 #38185A #56258A #7432BA #9357D2

Accessibility & contrast

On white

10.36
#56258A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #56258A
10.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56258A#FFFFFF#000000##FFFFFF
##56258A1.0010.362.0310.36
#FFFFFF10.361.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8D
Deuteranopia (green-blind)
#004088
Tritanopia (blue-blind)
#4B3E55
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #56258a;
/* rgb */ color: rgb(86, 37, 138);
/* oklch */ color: oklch(39.1% 0.158 301.5);
Tailwind
colors: {
  custom: {
    50: '#8b64ad',
    500: '#56258a',
    950: '#000000',
  },
}
SCSS
$custom: #56258a;
$custom-light: #8b64ad;
$custom-dark: #000000;
JSON
{
  "hex": "#56258a",
  "rgb": {
    "r": 86,
    "g": 37,
    "b": 138
  },
  "hsl": {
    "h": 269.109,
    "s": 57.714,
    "l": 34.314
  },
  "oklch": {
    "l": 0.39075,
    "c": 0.15843,
    "h": 301.5
  },
  "luminance": 0.05137
}

Semantic roles & 50–950 ramp

primary
#56258A
secondary
#87B754
accent
#E14796
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #56258A

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

Preview Lab → · Contrast checker → · Palette generator →

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