#581796#581796

#581796 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 39.0% C 0.186 H 300.6°. Best body text is #FFFFFF at 10.62:1 contrast (WCAG AA passes).

Color values

HEX#581796
RGBrgb(88, 23, 150)
HSLhsl(271, 73%, 34%)
HSVhsv(271, 85%, 59%)
CMYKcmyk(41.3%, 84.7%, 0%, 41.2%)
CIE-LABlab(26.42, 51.90, -55.95)
CIE-LCHlch(26.42, 76.32, 312.85°)
OKLaboklab(38.96% 0.0946 -0.16)
OKLCHoklch(38.96% 0.186 300.6)
XYZxyz(9.8345, 4.8894, 29.2739)
Luminance0.0489 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581796 #559617
analogous
#191796 #581796 #961795
triadic
#581796 #965817 #179658
tetradic
#581796 #961917 #559617 #179596
square
#581796 #961917 #559617 #179596
split-complementary
#581796 #959617 #179619
monochromatic
#1A072C #390F61 #581796 #771FCB #9645E2

Accessibility & contrast

On white

10.62
#581796 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#581796 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #581796
10.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581796#FFFFFF#000000##FFFFFF
##5817961.0010.621.9810.62
#FFFFFF10.621.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E99
Deuteranopia (green-blind)
#003E94
Tritanopia (blue-blind)
#493C59
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #581796;
/* rgb */ color: rgb(88, 23, 150);
/* oklch */ color: oklch(39.0% 0.186 300.6);
Tailwind
colors: {
  custom: {
    50: '#8e5eb6',
    500: '#581796',
    950: '#000000',
  },
}
SCSS
$custom: #581796;
$custom-light: #8e5eb6;
$custom-dark: #000000;
JSON
{
  "hex": "#581796",
  "rgb": {
    "r": 88,
    "g": 23,
    "b": 150
  },
  "hsl": {
    "h": 270.709,
    "s": 73.41,
    "l": 33.922
  },
  "oklch": {
    "l": 0.38965,
    "c": 0.1859,
    "h": 300.6
  },
  "luminance": 0.0489
}

Semantic roles & 50–950 ramp

primary
#581796
secondary
#83C345
accent
#F03892
background
#F9F5FB
surface
#F1EAF6
border
#CBC6D0
text
#0D0511
muted
#7E7980

Preview Lab

Preview with #581796

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

Preview Lab → · Contrast checker → · Palette generator →

#581796 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva