#56258C#56258C

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

Color values

HEX#56258C
RGBrgb(86, 37, 140)
HSLhsl(269, 58%, 35%)
HSVhsv(269, 74%, 55%)
CMYKcmyk(38.6%, 73.6%, 0%, 45.1%)
CIE-LABlab(27.28, 43.27, -48.37)
CIE-LCHlch(27.28, 64.90, 311.82°)
OKLaboklab(39.24% 0.0824 -0.1379)
OKLCHoklch(39.24% 0.161 300.9)
XYZxyz(9.2318, 5.1950, 25.3222)
Luminance0.0520 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56258C #5B8C25
analogous
#25278C #56258C #8A258C
triadic
#56258C #8C5625 #258C56
tetradic
#56258C #8C2527 #5B8C25 #258C8A
square
#56258C #8C2527 #5B8C25 #258C8A
split-complementary
#56258C #8C8A25 #278C25
monochromatic
#1B0B2B #38185C #56258C #7432BC #9358D3

Accessibility & contrast

On white

10.30
#56258C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#56258C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #56258C
10.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56258C#FFFFFF#000000##FFFFFF
##56258C1.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)
#00408F
Deuteranopia (green-blind)
#00408A
Tritanopia (blue-blind)
#4A3E56
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #56258c;
/* rgb */ color: rgb(86, 37, 140);
/* oklch */ color: oklch(39.2% 0.161 300.9);
Tailwind
colors: {
  custom: {
    50: '#8b64ae',
    500: '#56258c',
    950: '#000000',
  },
}
SCSS
$custom: #56258c;
$custom-light: #8b64ae;
$custom-dark: #000000;
JSON
{
  "hex": "#56258c",
  "rgb": {
    "r": 86,
    "g": 37,
    "b": 140
  },
  "hsl": {
    "h": 268.544,
    "s": 58.192,
    "l": 34.706
  },
  "oklch": {
    "l": 0.39241,
    "c": 0.1607,
    "h": 300.9
  },
  "luminance": 0.05195
}

Semantic roles & 50–950 ramp

primary
#56258C
secondary
#89B855
accent
#E14698
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #56258C

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

Preview Lab → · Contrast checker → · Palette generator →

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