#581F82#581F82

#581F82 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.0% C 0.157 H 306.4°. Best body text is #FFFFFF at 10.86:1 contrast (WCAG AA passes).

Color values

HEX#581F82
RGBrgb(88, 31, 130)
HSLhsl(275, 61%, 32%)
HSVhsv(275, 76%, 51%)
CMYKcmyk(32.3%, 76.2%, 0%, 49%)
CIE-LABlab(25.76, 43.96, -44.58)
CIE-LCHlch(25.76, 62.61, 314.60°)
OKLaboklab(37.97% 0.0935 -0.1267)
OKLCHoklch(37.97% 0.157 306.4)
XYZxyz(8.5429, 4.6665, 21.5654)
Luminance0.0467 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581F82 #49821F
analogous
#261F82 #581F82 #821F7B
triadic
#581F82 #82581F #1F8258
tetradic
#581F82 #82261F #49821F #1F7B82
square
#581F82 #82261F #49821F #1F7B82
split-complementary
#581F82 #7B821F #1F8226
monochromatic
#15071F #371351 #581F82 #792BB3 #9848D3

Accessibility & contrast

On white

10.86
#581F82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #581F82
10.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581F82#FFFFFF#000000##FFFFFF
##581F821.0010.861.9310.86
#FFFFFF10.861.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B85
Deuteranopia (green-blind)
#003D80
Tritanopia (blue-blind)
#51374F
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #581f82;
/* rgb */ color: rgb(88, 31, 130);
/* oklch */ color: oklch(38.0% 0.157 306.4);
Tailwind
colors: {
  custom: {
    50: '#8b61a7',
    500: '#581f82',
    950: '#000000',
  },
}
SCSS
$custom: #581f82;
$custom-light: #8b61a7;
$custom-dark: #000000;
JSON
{
  "hex": "#581f82",
  "rgb": {
    "r": 88,
    "g": 31,
    "b": 130
  },
  "hsl": {
    "h": 274.545,
    "s": 61.491,
    "l": 31.569
  },
  "oklch": {
    "l": 0.37971,
    "c": 0.15748,
    "h": 306.4
  },
  "luminance": 0.04666
}

Semantic roles & 50–950 ramp

primary
#581F82
secondary
#76B548
accent
#E54388
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #581F82

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

Preview Lab → · Contrast checker → · Palette generator →

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