#581F92#581F92

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

Color values

HEX#581F92
RGBrgb(88, 31, 146)
HSLhsl(270, 65%, 35%)
HSVhsv(270, 79%, 57%)
CMYKcmyk(39.7%, 78.8%, 0%, 42.7%)
CIE-LABlab(27.10, 47.89, -52.36)
CIE-LCHlch(27.10, 70.96, 312.44°)
OKLaboklab(39.33% 0.0897 -0.1496)
OKLCHoklch(39.33% 0.174 300.9)
XYZxyz(9.7015, 5.1299, 27.6676)
Luminance0.0513 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581F92 #59921F
analogous
#1F2092 #581F92 #921F92
triadic
#581F92 #92581F #1F9258
tetradic
#581F92 #921F20 #59921F #1F9292
square
#581F92 #921F20 #59921F #1F9292
split-complementary
#581F92 #92921F #20921F
monochromatic
#1B0A2D #3A1460 #581F92 #762AC4 #9551DA

Accessibility & contrast

On white

10.37
#581F92 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#581F92 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #581F92
10.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581F92#FFFFFF#000000##FFFFFF
##581F921.0010.372.0310.37
#FFFFFF10.371.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F95
Deuteranopia (green-blind)
#003F90
Tritanopia (blue-blind)
#4B3E58
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #581f92;
/* rgb */ color: rgb(88, 31, 146);
/* oklch */ color: oklch(39.3% 0.174 300.9);
Tailwind
colors: {
  custom: {
    50: '#8d62b3',
    500: '#581f92',
    950: '#000000',
  },
}
SCSS
$custom: #581f92;
$custom-light: #8d62b3;
$custom-dark: #000000;
JSON
{
  "hex": "#581f92",
  "rgb": {
    "r": 88,
    "g": 31,
    "b": 146
  },
  "hsl": {
    "h": 269.739,
    "s": 64.972,
    "l": 34.706
  },
  "oklch": {
    "l": 0.3933,
    "c": 0.1744,
    "h": 300.9
  },
  "luminance": 0.0513
}

Semantic roles & 50–950 ramp

primary
#581F92
secondary
#87BD50
accent
#E84095
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0511
muted
#7E7A80

Preview Lab

Preview with #581F92

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

Preview Lab → · Contrast checker → · Palette generator →

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