#581D94#581D94

#581D94 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.3% C 0.179 H 300.6°. Best body text is #FFFFFF at 10.40:1 contrast (WCAG AA passes).

Color values

HEX#581D94
RGBrgb(88, 29, 148)
HSLhsl(270, 67%, 35%)
HSVhsv(270, 80%, 58%)
CMYKcmyk(40.5%, 80.4%, 0%, 42%)
CIE-LABlab(26.99, 49.20, -53.77)
CIE-LCHlch(26.99, 72.89, 312.46°)
OKLaboklab(39.31% 0.0908 -0.1537)
OKLCHoklch(39.31% 0.179 300.6)
XYZxyz(9.8078, 5.0915, 28.4773)
Luminance0.0509 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581D94 #59941D
analogous
#1D1D94 #581D94 #941D94
triadic
#581D94 #94581D #1D9458
tetradic
#581D94 #941D1D #59941D #1D9494
square
#581D94 #941D1D #59941D #1D9494
split-complementary
#581D94 #94941D #1D941D
monochromatic
#1B092E #3A1361 #581D94 #7627C7 #954FDC

Accessibility & contrast

On white

10.40
#581D94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#581D94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #581D94
10.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581D94#FFFFFF#000000##FFFFFF
##581D941.0010.402.0210.40
#FFFFFF10.401.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F97
Deuteranopia (green-blind)
#003F92
Tritanopia (blue-blind)
#4A3E59
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #581d94;
/* rgb */ color: rgb(88, 29, 148);
/* oklch */ color: oklch(39.3% 0.179 300.6);
Tailwind
colors: {
  custom: {
    50: '#8d61b4',
    500: '#581d94',
    950: '#000000',
  },
}
SCSS
$custom: #581d94;
$custom-light: #8d61b4;
$custom-dark: #000000;
JSON
{
  "hex": "#581d94",
  "rgb": {
    "r": 88,
    "g": 29,
    "b": 148
  },
  "hsl": {
    "h": 269.748,
    "s": 67.232,
    "l": 34.706
  },
  "oklch": {
    "l": 0.39309,
    "c": 0.17852,
    "h": 300.6
  },
  "luminance": 0.05092
}

Semantic roles & 50–950 ramp

primary
#581D94
secondary
#87BF4E
accent
#EA3E95
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0511
muted
#7E7A80

Preview Lab

Preview with #581D94

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

Preview Lab → · Contrast checker → · Palette generator →

#581D94 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva