#581F7F#581F7F

#581F7F is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.7% C 0.154 H 307.6°. Best body text is #FFFFFF at 10.95:1 contrast (WCAG AA passes).

Color values

HEX#581F7F
RGBrgb(88, 31, 127)
HSLhsl(276, 61%, 31%)
HSVhsv(276, 76%, 50%)
CMYKcmyk(30.7%, 75.6%, 0%, 50.2%)
CIE-LABlab(25.52, 43.24, -43.07)
CIE-LCHlch(25.52, 61.03, 315.11°)
OKLaboklab(37.73% 0.0941 -0.1223)
OKLCHoklch(37.73% 0.154 307.6)
XYZxyz(8.3444, 4.5871, 20.5204)
Luminance0.0459 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581F7F #467F1F
analogous
#281F7F #581F7F #7F1F76
triadic
#581F7F #7F581F #1F7F58
tetradic
#581F7F #7F281F #467F1F #1F767F
square
#581F7F #7F281F #467F1F #1F767F
split-complementary
#581F7F #767F1F #1F7F28
monochromatic
#14071D #36134E #581F7F #7A2BB0 #9946D2

Accessibility & contrast

On white

10.95
#581F7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#581F7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #581F7F
10.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581F7F#FFFFFF#000000##FFFFFF
##581F7F1.0010.951.9210.95
#FFFFFF10.951.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A82
Deuteranopia (green-blind)
#003D7D
Tritanopia (blue-blind)
#52364D
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #581f7f;
/* rgb */ color: rgb(88, 31, 127);
/* oklch */ color: oklch(37.7% 0.154 307.6);
Tailwind
colors: {
  custom: {
    50: '#8b61a5',
    500: '#581f7f',
    950: '#000000',
  },
}
SCSS
$custom: #581f7f;
$custom-light: #8b61a5;
$custom-dark: #000000;
JSON
{
  "hex": "#581f7f",
  "rgb": {
    "r": 88,
    "g": 31,
    "b": 127
  },
  "hsl": {
    "h": 275.625,
    "s": 60.759,
    "l": 30.98
  },
  "oklch": {
    "l": 0.37728,
    "c": 0.1543,
    "h": 307.6
  },
  "luminance": 0.04587
}

Semantic roles & 50–950 ramp

primary
#581F7F
secondary
#73B248
accent
#E44485
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #581F7F

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

Preview Lab → · Contrast checker → · Palette generator →

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