#581F97#581F97

#581F97 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.8% C 0.180 H 299.4°. Best body text is #FFFFFF at 10.21:1 contrast (WCAG AA passes).

Color values

HEX#581F97
RGBrgb(88, 31, 151)
HSLhsl(269, 66%, 36%)
HSVhsv(269, 79%, 59%)
CMYKcmyk(41.7%, 79.5%, 0%, 40.8%)
CIE-LABlab(27.54, 49.14, -54.72)
CIE-LCHlch(27.54, 73.54, 311.92°)
OKLaboklab(39.77% 0.0883 -0.1565)
OKLCHoklch(39.77% 0.18 299.4)
XYZxyz(10.0990, 5.2889, 29.7610)
Luminance0.0529 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581F97 #5E971F
analogous
#1F2297 #581F97 #941F97
triadic
#581F97 #97581F #1F9758
tetradic
#581F97 #971F22 #5E971F #1F9794
square
#581F97 #971F22 #5E971F #1F9794
split-complementary
#581F97 #97941F #22971F
monochromatic
#1D0A31 #3A1564 #581F97 #7629CA #9554DC

Accessibility & contrast

On white

10.21
#581F97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#581F97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #581F97
10.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581F97#FFFFFF#000000##FFFFFF
##581F971.0010.212.0610.21
#FFFFFF10.211.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419A
Deuteranopia (green-blind)
#004095
Tritanopia (blue-blind)
#49405B
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #581f97;
/* rgb */ color: rgb(88, 31, 151);
/* oklch */ color: oklch(39.8% 0.180 299.4);
Tailwind
colors: {
  custom: {
    50: '#8e62b7',
    500: '#581f97',
    950: '#000000',
  },
}
SCSS
$custom: #581f97;
$custom-light: #8e62b7;
$custom-dark: #000000;
JSON
{
  "hex": "#581f97",
  "rgb": {
    "r": 88,
    "g": 31,
    "b": 151
  },
  "hsl": {
    "h": 268.5,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.39774,
    "c": 0.17968,
    "h": 299.4
  },
  "luminance": 0.05289
}

Semantic roles & 50–950 ramp

primary
#581F97
secondary
#8CBF52
accent
#E93F98
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0511
muted
#7E7A80

Preview Lab

Preview with #581F97

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

Preview Lab → · Contrast checker → · Palette generator →

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