#581F81#581F81

#581F81 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.9% C 0.156 H 306.8°. Best body text is #FFFFFF at 10.89:1 contrast (WCAG AA passes).

Color values

HEX#581F81
RGBrgb(88, 31, 129)
HSLhsl(275, 61%, 31%)
HSVhsv(275, 76%, 51%)
CMYKcmyk(31.8%, 76%, 0%, 49.4%)
CIE-LABlab(25.68, 43.72, -44.08)
CIE-LCHlch(25.68, 62.08, 314.77°)
OKLaboklab(37.89% 0.0937 -0.1252)
OKLCHoklch(37.89% 0.156 306.8)
XYZxyz(8.4761, 4.6398, 21.2137)
Luminance0.0464 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581F81 #48811F
analogous
#271F81 #581F81 #811F79
triadic
#581F81 #81581F #1F8158
tetradic
#581F81 #81271F #48811F #1F7981
square
#581F81 #81271F #48811F #1F7981
split-complementary
#581F81 #79811F #1F8127
monochromatic
#15071E #361350 #581F81 #7A2BB2 #9947D3

Accessibility & contrast

On white

10.89
#581F81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#581F81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #581F81
10.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581F81#FFFFFF#000000##FFFFFF
##581F811.0010.891.9310.89
#FFFFFF10.891.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B84
Deuteranopia (green-blind)
#003D7F
Tritanopia (blue-blind)
#51364E
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #581f81;
/* rgb */ color: rgb(88, 31, 129);
/* oklch */ color: oklch(37.9% 0.156 306.8);
Tailwind
colors: {
  custom: {
    50: '#8b61a6',
    500: '#581f81',
    950: '#000000',
  },
}
SCSS
$custom: #581f81;
$custom-light: #8b61a6;
$custom-dark: #000000;
JSON
{
  "hex": "#581f81",
  "rgb": {
    "r": 88,
    "g": 31,
    "b": 129
  },
  "hsl": {
    "h": 274.898,
    "s": 61.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.3789,
    "c": 0.15642,
    "h": 306.8
  },
  "luminance": 0.0464
}

Semantic roles & 50–950 ramp

primary
#581F81
secondary
#75B448
accent
#E44387
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #581F81

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

Preview Lab → · Contrast checker → · Palette generator →

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