#581F80#581F80

#581F80 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.8% C 0.155 H 307.2°. Best body text is #FFFFFF at 10.92:1 contrast (WCAG AA passes).

Color values

HEX#581F80
RGBrgb(88, 31, 128)
HSLhsl(275, 61%, 31%)
HSVhsv(275, 76%, 50%)
CMYKcmyk(31.3%, 75.8%, 0%, 49.8%)
CIE-LABlab(25.60, 43.48, -43.58)
CIE-LCHlch(25.60, 61.56, 314.94°)
OKLaboklab(37.81% 0.0939 -0.1238)
OKLCHoklch(37.81% 0.155 307.2)
XYZxyz(8.4099, 4.6133, 20.8653)
Luminance0.0461 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581F80 #47801F
analogous
#281F80 #581F80 #801F77
triadic
#581F80 #80581F #1F8058
tetradic
#581F80 #80281F #47801F #1F7780
square
#581F80 #80281F #47801F #1F7780
split-complementary
#581F80 #77801F #1F8028
monochromatic
#14071D #36134F #581F80 #7A2BB1 #9947D2

Accessibility & contrast

On white

10.92
#581F80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #581F80
10.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581F80#FFFFFF#000000##FFFFFF
##581F801.0010.921.9210.92
#FFFFFF10.921.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.921.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #581f80;
/* rgb */ color: rgb(88, 31, 128);
/* oklch */ color: oklch(37.8% 0.155 307.2);
Tailwind
colors: {
  custom: {
    50: '#8b61a6',
    500: '#581f80',
    950: '#000000',
  },
}
SCSS
$custom: #581f80;
$custom-light: #8b61a6;
$custom-dark: #000000;
JSON
{
  "hex": "#581f80",
  "rgb": {
    "r": 88,
    "g": 31,
    "b": 128
  },
  "hsl": {
    "h": 275.258,
    "s": 61.006,
    "l": 31.176
  },
  "oklch": {
    "l": 0.37809,
    "c": 0.15536,
    "h": 307.2
  },
  "luminance": 0.04613
}

Semantic roles & 50–950 ramp

primary
#581F80
secondary
#74B348
accent
#E44486
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #581F80

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

Preview Lab → · Contrast checker → · Palette generator →

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