#581F94#581F94

#581F94 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.5% C 0.177 H 300.3°. Best body text is #FFFFFF at 10.30:1 contrast (WCAG AA passes).

Color values

HEX#581F94
RGBrgb(88, 31, 148)
HSLhsl(269, 65%, 35%)
HSVhsv(269, 79%, 58%)
CMYKcmyk(40.5%, 79.1%, 0%, 42%)
CIE-LABlab(27.28, 48.39, -53.31)
CIE-LCHlch(27.28, 72.00, 312.23°)
OKLaboklab(39.51% 0.0891 -0.1524)
OKLCHoklch(39.51% 0.177 300.3)
XYZxyz(9.8585, 5.1927, 28.4941)
Luminance0.0519 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581F94 #5B941F
analogous
#1F2094 #581F94 #931F94
triadic
#581F94 #94581F #1F9458
tetradic
#581F94 #941F20 #5B941F #1F9493
square
#581F94 #941F20 #5B941F #1F9493
split-complementary
#581F94 #94931F #20941F
monochromatic
#1C0A2F #3A1461 #581F94 #762AC7 #9553DB

Accessibility & contrast

On white

10.30
#581F94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#581F94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #581F94
10.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581F94#FFFFFF#000000##FFFFFF
##581F941.0010.302.0410.30
#FFFFFF10.301.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004097
Deuteranopia (green-blind)
#004092
Tritanopia (blue-blind)
#4A3E59
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #581f94;
/* rgb */ color: rgb(88, 31, 148);
/* oklch */ color: oklch(39.5% 0.177 300.3);
Tailwind
colors: {
  custom: {
    50: '#8d62b4',
    500: '#581f94',
    950: '#000000',
  },
}
SCSS
$custom: #581f94;
$custom-light: #8d62b4;
$custom-dark: #000000;
JSON
{
  "hex": "#581f94",
  "rgb": {
    "r": 88,
    "g": 31,
    "b": 148
  },
  "hsl": {
    "h": 269.231,
    "s": 65.363,
    "l": 35.098
  },
  "oklch": {
    "l": 0.39506,
    "c": 0.17652,
    "h": 300.3
  },
  "luminance": 0.05193
}

Semantic roles & 50–950 ramp

primary
#581F94
secondary
#89BE51
accent
#E83F96
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0511
muted
#7E7A80

Preview Lab

Preview with #581F94

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

Preview Lab → · Contrast checker → · Palette generator →

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