#56259D#56259D

#56259D is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.7% C 0.180 H 295.9°. Best body text is #FFFFFF at 9.78:1 contrast (WCAG AA passes).

Color values

HEX#56259D
RGBrgb(86, 37, 157)
HSLhsl(265, 62%, 38%)
HSVhsv(265, 76%, 62%)
CMYKcmyk(45.2%, 76.4%, 0%, 38.4%)
CIE-LABlab(28.74, 47.72, -56.45)
CIE-LCHlch(28.74, 73.92, 310.21°)
OKLaboklab(40.72% 0.0785 -0.1617)
OKLCHoklch(40.72% 0.18 295.9)
XYZxyz(10.5835, 5.7356, 32.4412)
Luminance0.0574 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#56259D #6C9D25
analogous
#25309D #56259D #92259D
triadic
#56259D #9D5625 #259D56
tetradic
#56259D #9D2530 #6C9D25 #259D92
square
#56259D #9D2530 #6C9D25 #259D92
split-complementary
#56259D #9D9225 #309D25
monochromatic
#200E3A #3B196B #56259D #7131CE #9362DA

Accessibility & contrast

On white

9.78
#56259D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#56259D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #56259D
9.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##56259D#FFFFFF#000000##FFFFFF
##56259D1.009.782.159.78
#FFFFFF9.781.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A0
Deuteranopia (green-blind)
#00429B
Tritanopia (blue-blind)
#42455F
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #56259d;
/* rgb */ color: rgb(86, 37, 157);
/* oklch */ color: oklch(40.7% 0.180 295.9);
Tailwind
colors: {
  custom: {
    50: '#8d65bb',
    500: '#56259d',
    950: '#000000',
  },
}
SCSS
$custom: #56259d;
$custom-light: #8d65bb;
$custom-dark: #000000;
JSON
{
  "hex": "#56259d",
  "rgb": {
    "r": 86,
    "g": 37,
    "b": 157
  },
  "hsl": {
    "h": 264.5,
    "s": 61.856,
    "l": 38.039
  },
  "oklch": {
    "l": 0.40717,
    "c": 0.17972,
    "h": 295.9
  },
  "luminance": 0.05736
}

Semantic roles & 50–950 ramp

primary
#56259D
secondary
#98BF5E
accent
#E543A3
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #56259D

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

Preview Lab → · Contrast checker → · Palette generator →

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