#581F87#581F87

#581F87 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.4% C 0.163 H 304.6°. Best body text is #FFFFFF at 10.71:1 contrast (WCAG AA passes).

Color values

HEX#581F87
RGBrgb(88, 31, 135)
HSLhsl(273, 63%, 33%)
HSVhsv(273, 77%, 53%)
CMYKcmyk(34.8%, 77%, 0%, 47.1%)
CIE-LABlab(26.17, 45.17, -47.05)
CIE-LCHlch(26.17, 65.23, 313.83°)
OKLaboklab(38.39% 0.0924 -0.134)
OKLCHoklch(38.39% 0.163 304.6)
XYZxyz(8.8867, 4.8040, 23.3761)
Luminance0.0480 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581F87 #4E871F
analogous
#241F87 #581F87 #871F82
triadic
#581F87 #87581F #1F8758
tetradic
#581F87 #87241F #4E871F #1F8287
square
#581F87 #87241F #4E871F #1F8287
split-complementary
#581F87 #82871F #1F8724
monochromatic
#170823 #381455 #581F87 #782AB9 #974BD6

Accessibility & contrast

On white

10.71
#581F87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#581F87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #581F87
10.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581F87#FFFFFF#000000##FFFFFF
##581F871.0010.711.9610.71
#FFFFFF10.711.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8A
Deuteranopia (green-blind)
#003E85
Tritanopia (blue-blind)
#4F3952
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #581f87;
/* rgb */ color: rgb(88, 31, 135);
/* oklch */ color: oklch(38.4% 0.163 304.6);
Tailwind
colors: {
  custom: {
    50: '#8c61ab',
    500: '#581f87',
    950: '#000000',
  },
}
SCSS
$custom: #581f87;
$custom-light: #8c61ab;
$custom-dark: #000000;
JSON
{
  "hex": "#581f87",
  "rgb": {
    "r": 88,
    "g": 31,
    "b": 135
  },
  "hsl": {
    "h": 272.885,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.38385,
    "c": 0.16277,
    "h": 304.6
  },
  "luminance": 0.04804
}

Semantic roles & 50–950 ramp

primary
#581F87
secondary
#7CB84A
accent
#E6428C
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0D0510
muted
#7D797F

Preview Lab

Preview with #581F87

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

Preview Lab → · Contrast checker → · Palette generator →

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