#581E9F#581E9F

#581E9F is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.4% C 0.189 H 297.3°. Best body text is #FFFFFF at 9.99:1 contrast (WCAG AA passes).

Color values

HEX#581E9F
RGBrgb(88, 30, 159)
HSLhsl(267, 68%, 37%)
HSVhsv(267, 81%, 62%)
CMYKcmyk(44.7%, 81.1%, 0%, 37.6%)
CIE-LABlab(28.13, 51.55, -58.65)
CIE-LCHlch(28.13, 78.08, 311.31°)
OKLaboklab(40.41% 0.0866 -0.168)
OKLCHoklch(40.41% 0.189 297.3)
XYZxyz(10.7451, 5.5062, 33.2909)
Luminance0.0551 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581E9F #659F1E
analogous
#1E249F #581E9F #991E9F
triadic
#581E9F #9F581E #1E9F58
tetradic
#581E9F #9F1E24 #659F1E #1E9F99
square
#581E9F #9F1E24 #659F1E #1E9F99
split-complementary
#581E9F #9F991E #249F1E
monochromatic
#1F0B38 #3C146C #581E9F #7428D2 #9558DF

Accessibility & contrast

On white

9.99
#581E9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#581E9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #581E9F
9.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581E9F#FFFFFF#000000##FFFFFF
##581E9F1.009.992.109.99
#FFFFFF9.991.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF9.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A2
Deuteranopia (green-blind)
#00419D
Tritanopia (blue-blind)
#45435F
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #581e9f;
/* rgb */ color: rgb(88, 30, 159);
/* oklch */ color: oklch(40.4% 0.189 297.3);
Tailwind
colors: {
  custom: {
    50: '#8f62bc',
    500: '#581e9f',
    950: '#000000',
  },
}
SCSS
$custom: #581e9f;
$custom-light: #8f62bc;
$custom-dark: #000000;
JSON
{
  "hex": "#581e9f",
  "rgb": {
    "r": 88,
    "g": 30,
    "b": 159
  },
  "hsl": {
    "h": 266.977,
    "s": 68.254,
    "l": 37.059
  },
  "oklch": {
    "l": 0.40407,
    "c": 0.18902,
    "h": 297.3
  },
  "luminance": 0.05506
}

Semantic roles & 50–950 ramp

primary
#581E9F
secondary
#92C356
accent
#EB3D9D
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0D0512
muted
#7E7A81

Preview Lab

Preview with #581E9F

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

Preview Lab → · Contrast checker → · Palette generator →

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