#581D8C#581D8C

#581D8C is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.6% C 0.170 H 303.1°. Best body text is #FFFFFF at 10.66:1 contrast (WCAG AA passes).

Color values

HEX#581D8C
RGBrgb(88, 29, 140)
HSLhsl(272, 66%, 33%)
HSVhsv(272, 79%, 55%)
CMYKcmyk(37.1%, 79.3%, 0%, 45.1%)
CIE-LABlab(26.29, 47.24, -49.97)
CIE-LCHlch(26.29, 68.76, 313.39°)
OKLaboklab(38.6% 0.093 -0.1425)
OKLCHoklch(38.6% 0.17 303.1)
XYZxyz(9.1964, 4.8469, 25.2569)
Luminance0.0485 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581D8C #518C1D
analogous
#211D8C #581D8C #8C1D88
triadic
#581D8C #8C581D #1D8C58
tetradic
#581D8C #8C211D #518C1D #1D888C
square
#581D8C #8C211D #518C1D #1D888C
split-complementary
#581D8C #888C1D #1D8C21
monochromatic
#180827 #381259 #581D8C #7828BF #964AD9

Accessibility & contrast

On white

10.66
#581D8C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#581D8C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #581D8C
10.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581D8C#FFFFFF#000000##FFFFFF
##581D8C1.0010.661.9710.66
#FFFFFF10.661.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8F
Deuteranopia (green-blind)
#003E8A
Tritanopia (blue-blind)
#4D3A54
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #581d8c;
/* rgb */ color: rgb(88, 29, 140);
/* oklch */ color: oklch(38.6% 0.170 303.1);
Tailwind
colors: {
  custom: {
    50: '#8d60ae',
    500: '#581d8c',
    950: '#000000',
  },
}
SCSS
$custom: #581d8c;
$custom-light: #8d60ae;
$custom-dark: #000000;
JSON
{
  "hex": "#581d8c",
  "rgb": {
    "r": 88,
    "g": 29,
    "b": 140
  },
  "hsl": {
    "h": 271.892,
    "s": 65.68,
    "l": 33.137
  },
  "oklch": {
    "l": 0.38604,
    "c": 0.1702,
    "h": 303.1
  },
  "luminance": 0.04847
}

Semantic roles & 50–950 ramp

primary
#581D8C
secondary
#7FBC49
accent
#E93F8F
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #581D8C

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

Preview Lab → · Contrast checker → · Palette generator →

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