#56259B#56259B

#56259B is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.5% C 0.177 H 296.4°. Best body text is #FFFFFF at 9.84:1 contrast (WCAG AA passes).

Color values

HEX#56259B
RGBrgb(86, 37, 155)
HSLhsl(265, 61%, 38%)
HSVhsv(265, 76%, 61%)
CMYKcmyk(44.5%, 76.1%, 0%, 39.2%)
CIE-LABlab(28.56, 47.19, -55.52)
CIE-LCHlch(28.56, 72.87, 310.37°)
OKLaboklab(40.54% 0.079 -0.159)
OKLCHoklch(40.54% 0.178 296.4)
XYZxyz(10.4141, 5.6679, 31.5493)
Luminance0.0567 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56259B #6A9B25
analogous
#252F9B #56259B #91259B
triadic
#56259B #9B5625 #259B56
tetradic
#56259B #9B252F #6A9B25 #259B91
square
#56259B #9B252F #6A9B25 #259B91
split-complementary
#56259B #9B9125 #2F9B25
monochromatic
#1F0D38 #3B196A #56259B #7131CC #9361D9

Accessibility & contrast

On white

9.84
#56259B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#56259B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #56259B
9.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56259B#FFFFFF#000000##FFFFFF
##56259B1.009.842.139.84
#FFFFFF9.841.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449E
Deuteranopia (green-blind)
#004299
Tritanopia (blue-blind)
#43445E
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #56259b;
/* rgb */ color: rgb(86, 37, 155);
/* oklch */ color: oklch(40.5% 0.177 296.4);
Tailwind
colors: {
  custom: {
    50: '#8c65b9',
    500: '#56259b',
    950: '#000000',
  },
}
SCSS
$custom: #56259b;
$custom-light: #8c65b9;
$custom-dark: #000000;
JSON
{
  "hex": "#56259b",
  "rgb": {
    "r": 86,
    "g": 37,
    "b": 155
  },
  "hsl": {
    "h": 264.915,
    "s": 61.458,
    "l": 37.647
  },
  "oklch": {
    "l": 0.40538,
    "c": 0.1775,
    "h": 296.4
  },
  "luminance": 0.05668
}

Semantic roles & 50–950 ramp

primary
#56259B
secondary
#96BF5D
accent
#E543A2
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #56259B

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

Preview Lab → · Contrast checker → · Palette generator →

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