#581F84#581F84

#581F84 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.1% C 0.160 H 305.7°. Best body text is #FFFFFF at 10.80:1 contrast (WCAG AA passes).

Color values

HEX#581F84
RGBrgb(88, 31, 132)
HSLhsl(274, 62%, 32%)
HSVhsv(274, 77%, 52%)
CMYKcmyk(33.3%, 76.5%, 0%, 48.2%)
CIE-LABlab(25.92, 44.44, -45.57)
CIE-LCHlch(25.92, 63.66, 314.28°)
OKLaboklab(38.14% 0.0931 -0.1296)
OKLCHoklch(38.14% 0.16 305.7)
XYZxyz(8.6784, 4.7207, 22.2793)
Luminance0.0472 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581F84 #4B841F
analogous
#251F84 #581F84 #841F7E
triadic
#581F84 #84581F #1F8458
tetradic
#581F84 #84251F #4B841F #1F7E84
square
#581F84 #84251F #4B841F #1F7E84
split-complementary
#581F84 #7E841F #1F8425
monochromatic
#160821 #371352 #581F84 #792BB6 #9849D4

Accessibility & contrast

On white

10.80
#581F84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#581F84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #581F84
10.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581F84#FFFFFF#000000##FFFFFF
##581F841.0010.801.9410.80
#FFFFFF10.801.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C87
Deuteranopia (green-blind)
#003E82
Tritanopia (blue-blind)
#503850
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #581f84;
/* rgb */ color: rgb(88, 31, 132);
/* oklch */ color: oklch(38.1% 0.160 305.7);
Tailwind
colors: {
  custom: {
    50: '#8c61a9',
    500: '#581f84',
    950: '#000000',
  },
}
SCSS
$custom: #581f84;
$custom-light: #8c61a9;
$custom-dark: #000000;
JSON
{
  "hex": "#581f84",
  "rgb": {
    "r": 88,
    "g": 31,
    "b": 132
  },
  "hsl": {
    "h": 273.861,
    "s": 61.963,
    "l": 31.961
  },
  "oklch": {
    "l": 0.38135,
    "c": 0.15959,
    "h": 305.7
  },
  "luminance": 0.04721
}

Semantic roles & 50–950 ramp

primary
#581F84
secondary
#78B748
accent
#E54389
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #581F84

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

Preview Lab → · Contrast checker → · Palette generator →

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