#581F85#581F85

#581F85 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.2% C 0.161 H 305.3°. Best body text is #FFFFFF at 10.77:1 contrast (WCAG AA passes).

Color values

HEX#581F85
RGBrgb(88, 31, 133)
HSLhsl(274, 62%, 32%)
HSVhsv(274, 77%, 52%)
CMYKcmyk(33.8%, 76.7%, 0%, 47.8%)
CIE-LABlab(26.00, 44.69, -46.07)
CIE-LCHlch(26.00, 64.18, 314.13°)
OKLaboklab(38.22% 0.0929 -0.1311)
OKLCHoklch(38.22% 0.161 305.3)
XYZxyz(8.7472, 4.7482, 22.6414)
Luminance0.0475 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581F85 #4C851F
analogous
#251F85 #581F85 #851F7F
triadic
#581F85 #85581F #1F8558
tetradic
#581F85 #85251F #4C851F #1F7F85
square
#581F85 #85251F #4C851F #1F7F85
split-complementary
#581F85 #7F851F #1F8525
monochromatic
#160822 #371353 #581F85 #792BB7 #974AD5

Accessibility & contrast

On white

10.77
#581F85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#581F85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #581F85
10.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581F85#FFFFFF#000000##FFFFFF
##581F851.0010.771.9510.77
#FFFFFF10.771.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C88
Deuteranopia (green-blind)
#003E83
Tritanopia (blue-blind)
#503850
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #581f85;
/* rgb */ color: rgb(88, 31, 133);
/* oklch */ color: oklch(38.2% 0.161 305.3);
Tailwind
colors: {
  custom: {
    50: '#8c61a9',
    500: '#581f85',
    950: '#000000',
  },
}
SCSS
$custom: #581f85;
$custom-light: #8c61a9;
$custom-dark: #000000;
JSON
{
  "hex": "#581f85",
  "rgb": {
    "r": 88,
    "g": 31,
    "b": 133
  },
  "hsl": {
    "h": 273.529,
    "s": 62.195,
    "l": 32.157
  },
  "oklch": {
    "l": 0.38218,
    "c": 0.16066,
    "h": 305.3
  },
  "luminance": 0.04748
}

Semantic roles & 50–950 ramp

primary
#581F85
secondary
#79B749
accent
#E5438A
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #581F85

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

Preview Lab → · Contrast checker → · Palette generator →

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