#56259C#56259C

#56259C is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.6% C 0.179 H 296.1°. Best body text is #FFFFFF at 9.81:1 contrast (WCAG AA passes).

Color values

HEX#56259C
RGBrgb(86, 37, 156)
HSLhsl(265, 62%, 38%)
HSVhsv(265, 76%, 61%)
CMYKcmyk(44.9%, 76.3%, 0%, 38.8%)
CIE-LABlab(28.65, 47.46, -55.99)
CIE-LCHlch(28.65, 73.39, 310.29°)
OKLaboklab(40.63% 0.0787 -0.1603)
OKLCHoklch(40.63% 0.179 296.1)
XYZxyz(10.4985, 5.7016, 31.9934)
Luminance0.0570 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56259C #6B9C25
analogous
#252F9C #56259C #91259C
triadic
#56259C #9C5625 #259C56
tetradic
#56259C #9C252F #6B9C25 #259C91
square
#56259C #9C252F #6B9C25 #259C91
split-complementary
#56259C #9C9125 #2F9C25
monochromatic
#1F0E39 #3B196B #56259C #7131CD #9362DA

Accessibility & contrast

On white

9.81
#56259C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#56259C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #56259C
9.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56259C#FFFFFF#000000##FFFFFF
##56259C1.009.812.149.81
#FFFFFF9.811.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449F
Deuteranopia (green-blind)
#00429A
Tritanopia (blue-blind)
#43455F
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #56259c;
/* rgb */ color: rgb(86, 37, 156);
/* oklch */ color: oklch(40.6% 0.179 296.1);
Tailwind
colors: {
  custom: {
    50: '#8d65ba',
    500: '#56259c',
    950: '#000000',
  },
}
SCSS
$custom: #56259c;
$custom-light: #8d65ba;
$custom-dark: #000000;
JSON
{
  "hex": "#56259c",
  "rgb": {
    "r": 86,
    "g": 37,
    "b": 156
  },
  "hsl": {
    "h": 264.706,
    "s": 61.658,
    "l": 37.843
  },
  "oklch": {
    "l": 0.40627,
    "c": 0.17861,
    "h": 296.1
  },
  "luminance": 0.05702
}

Semantic roles & 50–950 ramp

primary
#56259C
secondary
#97BF5E
accent
#E543A2
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #56259C

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

Preview Lab → · Contrast checker → · Palette generator →

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