#581F89#581F89

#581F89 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.6% C 0.165 H 303.9°. Best body text is #FFFFFF at 10.65:1 contrast (WCAG AA passes).

Color values

HEX#581F89
RGBrgb(88, 31, 137)
HSLhsl(272, 63%, 33%)
HSVhsv(272, 77%, 54%)
CMYKcmyk(35.8%, 77.4%, 0%, 46.3%)
CIE-LABlab(26.33, 45.66, -48.03)
CIE-LCHlch(26.33, 66.27, 313.55°)
OKLaboklab(38.55% 0.092 -0.1368)
OKLCHoklch(38.55% 0.165 303.9)
XYZxyz(9.0288, 4.8608, 24.1246)
Luminance0.0486 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581F89 #50891F
analogous
#231F89 #581F89 #891F85
triadic
#581F89 #89581F #1F8958
tetradic
#581F89 #89231F #50891F #1F8589
square
#581F89 #89231F #50891F #1F8589
split-complementary
#581F89 #85891F #1F8923
monochromatic
#180825 #381457 #581F89 #782ABB #964CD6

Accessibility & contrast

On white

10.65
#581F89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#581F89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #581F89
10.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581F89#FFFFFF#000000##FFFFFF
##581F891.0010.651.9710.65
#FFFFFF10.651.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8C
Deuteranopia (green-blind)
#003E87
Tritanopia (blue-blind)
#4E3A53
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #581f89;
/* rgb */ color: rgb(88, 31, 137);
/* oklch */ color: oklch(38.6% 0.165 303.9);
Tailwind
colors: {
  custom: {
    50: '#8c61ac',
    500: '#581f89',
    950: '#000000',
  },
}
SCSS
$custom: #581f89;
$custom-light: #8c61ac;
$custom-dark: #000000;
JSON
{
  "hex": "#581f89",
  "rgb": {
    "r": 88,
    "g": 31,
    "b": 137
  },
  "hsl": {
    "h": 272.264,
    "s": 63.095,
    "l": 32.941
  },
  "oklch": {
    "l": 0.38553,
    "c": 0.16489,
    "h": 303.9
  },
  "luminance": 0.04861
}

Semantic roles & 50–950 ramp

primary
#581F89
secondary
#7EB94B
accent
#E6428E
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0D0510
muted
#7D7A7F

Preview Lab

Preview with #581F89

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

Preview Lab → · Contrast checker → · Palette generator →

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