#581D9C#581D9C

#581D9C is a dark, vivid violet. Relative luminance 0.054; OKLCH L 40.0% C 0.187 H 298.2°. Best body text is #FFFFFF at 10.14:1 contrast (WCAG AA passes).

Color values

HEX#581D9C
RGBrgb(88, 29, 156)
HSLhsl(268, 69%, 36%)
HSVhsv(268, 81%, 61%)
CMYKcmyk(43.6%, 81.4%, 0%, 38.8%)
CIE-LABlab(27.72, 51.19, -57.49)
CIE-LCHlch(27.72, 76.98, 311.68°)
OKLaboklab(40.04% 0.0883 -0.1646)
OKLCHoklch(40.04% 0.187 298.2)
XYZxyz(10.4631, 5.3536, 31.9281)
Luminance0.0535 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581D9C #619C1D
analogous
#1D229C #581D9C #981D9C
triadic
#581D9C #9C581D #1D9C58
tetradic
#581D9C #9C1D22 #619C1D #1D9C98
square
#581D9C #9C1D22 #619C1D #1D9C98
split-complementary
#581D9C #9C981D #229C1D
monochromatic
#1E0A35 #3B1368 #581D9C #7527D0 #9554DF

Accessibility & contrast

On white

10.14
#581D9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #581D9C
10.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581D9C#FFFFFF#000000##FFFFFF
##581D9C1.0010.142.0710.14
#FFFFFF10.141.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429F
Deuteranopia (green-blind)
#00409A
Tritanopia (blue-blind)
#47415D
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #581d9c;
/* rgb */ color: rgb(88, 29, 156);
/* oklch */ color: oklch(40.0% 0.187 298.2);
Tailwind
colors: {
  custom: {
    50: '#8e61ba',
    500: '#581d9c',
    950: '#000000',
  },
}
SCSS
$custom: #581d9c;
$custom-light: #8e61ba;
$custom-dark: #000000;
JSON
{
  "hex": "#581d9c",
  "rgb": {
    "r": 88,
    "g": 29,
    "b": 156
  },
  "hsl": {
    "h": 267.874,
    "s": 68.649,
    "l": 36.275
  },
  "oklch": {
    "l": 0.40036,
    "c": 0.18681,
    "h": 298.2
  },
  "luminance": 0.05354
}

Semantic roles & 50–950 ramp

primary
#581D9C
secondary
#8EC252
accent
#EB3C9A
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0512
muted
#7E7A81

Preview Lab

Preview with #581D9C

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

Preview Lab → · Contrast checker → · Palette generator →

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