#581E8B#581E8B

#581E8B is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.6% C 0.168 H 303.3°. Best body text is #FFFFFF at 10.64:1 contrast (WCAG AA passes).

Color values

HEX#581E8B
RGBrgb(88, 30, 139)
HSLhsl(272, 64%, 33%)
HSVhsv(272, 78%, 55%)
CMYKcmyk(36.7%, 78.4%, 0%, 45.5%)
CIE-LABlab(26.35, 46.58, -49.25)
CIE-LCHlch(26.35, 67.79, 313.41°)
OKLaboklab(38.62% 0.0924 -0.1404)
OKLCHoklch(38.62% 0.168 303.3)
XYZxyz(9.1479, 4.8673, 24.8786)
Luminance0.0487 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581E8B #518B1E
analogous
#221E8B #581E8B #8B1E87
triadic
#581E8B #8B581E #1E8B58
tetradic
#581E8B #8B221E #518B1E #1E878B
square
#581E8B #8B221E #518B1E #1E878B
split-complementary
#581E8B #878B1E #1E8B22
monochromatic
#180826 #381359 #581E8B #7829BD #964BD8

Accessibility & contrast

On white

10.64
#581E8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #581E8B
10.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581E8B#FFFFFF#000000##FFFFFF
##581E8B1.0010.641.9710.64
#FFFFFF10.641.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8E
Deuteranopia (green-blind)
#003E89
Tritanopia (blue-blind)
#4E3A54
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #581e8b;
/* rgb */ color: rgb(88, 30, 139);
/* oklch */ color: oklch(38.6% 0.168 303.3);
Tailwind
colors: {
  custom: {
    50: '#8c61ae',
    500: '#581e8b',
    950: '#000000',
  },
}
SCSS
$custom: #581e8b;
$custom-light: #8c61ae;
$custom-dark: #000000;
JSON
{
  "hex": "#581e8b",
  "rgb": {
    "r": 88,
    "g": 30,
    "b": 139
  },
  "hsl": {
    "h": 271.927,
    "s": 64.497,
    "l": 33.137
  },
  "oklch": {
    "l": 0.38619,
    "c": 0.1681,
    "h": 303.3
  },
  "luminance": 0.04867
}

Semantic roles & 50–950 ramp

primary
#581E8B
secondary
#7FBB4A
accent
#E7408F
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #581E8B

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

Preview Lab → · Contrast checker → · Palette generator →

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