#581C9D#581C9D

#581C9D is a dark, vivid violet. Relative luminance 0.053; OKLCH L 40.0% C 0.189 H 298.0°. Best body text is #FFFFFF at 10.15:1 contrast (WCAG AA passes).

Color values

HEX#581C9D
RGBrgb(88, 28, 157)
HSLhsl(268, 70%, 36%)
HSVhsv(268, 82%, 62%)
CMYKcmyk(43.9%, 82.2%, 0%, 38.4%)
CIE-LABlab(27.68, 51.82, -58.17)
CIE-LCHlch(27.68, 77.90, 311.70°)
OKLaboklab(40.04% 0.0887 -0.1666)
OKLCHoklch(40.04% 0.189 298)
XYZxyz(10.5240, 5.3393, 32.3679)
Luminance0.0534 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581C9D #619D1C
analogous
#1C219D #581C9D #991C9D
triadic
#581C9D #9D581C #1C9D58
tetradic
#581C9D #9D1C21 #619D1C #1C9D99
square
#581C9D #9D1C21 #619D1C #1C9D99
split-complementary
#581C9D #9D991C #219D1C
monochromatic
#1E0935 #3B1369 #581C9D #7525D1 #9553E0

Accessibility & contrast

On white

10.15
#581C9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#581C9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #581C9D
10.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581C9D#FFFFFF#000000##FFFFFF
##581C9D1.0010.152.0710.15
#FFFFFF10.151.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A0
Deuteranopia (green-blind)
#00409B
Tritanopia (blue-blind)
#46415E
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #581c9d;
/* rgb */ color: rgb(88, 28, 157);
/* oklch */ color: oklch(40.0% 0.189 298.0);
Tailwind
colors: {
  custom: {
    50: '#8e61bb',
    500: '#581c9d',
    950: '#000000',
  },
}
SCSS
$custom: #581c9d;
$custom-light: #8e61bb;
$custom-dark: #000000;
JSON
{
  "hex": "#581c9d",
  "rgb": {
    "r": 88,
    "g": 28,
    "b": 157
  },
  "hsl": {
    "h": 267.907,
    "s": 69.73,
    "l": 36.275
  },
  "oklch": {
    "l": 0.40037,
    "c": 0.18874,
    "h": 298
  },
  "luminance": 0.0534
}

Semantic roles & 50–950 ramp

primary
#581C9D
secondary
#8EC351
accent
#ED3B9A
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0512
muted
#7E7A81

Preview Lab

Preview with #581C9D

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

Preview Lab → · Contrast checker → · Palette generator →

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