#581E9B#581E9B

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

Color values

HEX#581E9B
RGBrgb(88, 30, 155)
HSLhsl(268, 68%, 36%)
HSVhsv(268, 81%, 61%)
CMYKcmyk(43.2%, 80.6%, 0%, 39.2%)
CIE-LABlab(27.76, 50.54, -56.81)
CIE-LCHlch(27.76, 76.04, 311.66°)
OKLaboklab(40.04% 0.0879 -0.1626)
OKLCHoklch(40.04% 0.185 298.4)
XYZxyz(10.4036, 5.3696, 31.4923)
Luminance0.0537 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581E9B #619B1E
analogous
#1E239B #581E9B #971E9B
triadic
#581E9B #9B581E #1E9B58
tetradic
#581E9B #9B1E23 #619B1E #1E9B97
square
#581E9B #9B1E23 #619B1E #1E9B97
split-complementary
#581E9B #9B971E #239B1E
monochromatic
#1E0A34 #3B1468 #581E9B #7528CE #9555DE

Accessibility & contrast

On white

10.13
#581E9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #581E9B
10.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581E9B#FFFFFF#000000##FFFFFF
##581E9B1.0010.132.0710.13
#FFFFFF10.131.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429E
Deuteranopia (green-blind)
#004099
Tritanopia (blue-blind)
#47415D
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #581e9b;
/* rgb */ color: rgb(88, 30, 155);
/* oklch */ color: oklch(40.0% 0.185 298.4);
Tailwind
colors: {
  custom: {
    50: '#8e62ba',
    500: '#581e9b',
    950: '#000000',
  },
}
SCSS
$custom: #581e9b;
$custom-light: #8e62ba;
$custom-dark: #000000;
JSON
{
  "hex": "#581e9b",
  "rgb": {
    "r": 88,
    "g": 30,
    "b": 155
  },
  "hsl": {
    "h": 267.84,
    "s": 67.568,
    "l": 36.275
  },
  "oklch": {
    "l": 0.40038,
    "c": 0.18485,
    "h": 298.4
  },
  "luminance": 0.0537
}

Semantic roles & 50–950 ramp

primary
#581E9B
secondary
#8EC253
accent
#EA3D9A
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0512
muted
#7E7A81

Preview Lab

Preview with #581E9B

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

Preview Lab → · Contrast checker → · Palette generator →

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