#581E9D#581E9D

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

Color values

HEX#581E9D
RGBrgb(88, 30, 157)
HSLhsl(267, 68%, 37%)
HSVhsv(267, 81%, 62%)
CMYKcmyk(43.9%, 80.9%, 0%, 38.4%)
CIE-LABlab(27.95, 51.04, -57.73)
CIE-LCHlch(27.95, 77.06, 311.48°)
OKLaboklab(40.22% 0.0872 -0.1653)
OKLCHoklch(40.22% 0.187 297.8)
XYZxyz(10.5730, 5.4374, 32.3842)
Luminance0.0544 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581E9D #639D1E
analogous
#1E239D #581E9D #981E9D
triadic
#581E9D #9D581E #1E9D58
tetradic
#581E9D #9D1E23 #639D1E #1E9D98
square
#581E9D #9D1E23 #639D1E #1E9D98
split-complementary
#581E9D #9D981E #239D1E
monochromatic
#1E0A36 #3B146A #581E9D #7528D0 #9557DF

Accessibility & contrast

On white

10.06
#581E9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#581E9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #581E9D
10.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581E9D#FFFFFF#000000##FFFFFF
##581E9D1.0010.062.0910.06
#FFFFFF10.061.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A0
Deuteranopia (green-blind)
#00409B
Tritanopia (blue-blind)
#46425E
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #581e9d;
/* rgb */ color: rgb(88, 30, 157);
/* oklch */ color: oklch(40.2% 0.187 297.8);
Tailwind
colors: {
  custom: {
    50: '#8e62bb',
    500: '#581e9d',
    950: '#000000',
  },
}
SCSS
$custom: #581e9d;
$custom-light: #8e62bb;
$custom-dark: #000000;
JSON
{
  "hex": "#581e9d",
  "rgb": {
    "r": 88,
    "g": 30,
    "b": 157
  },
  "hsl": {
    "h": 267.402,
    "s": 67.914,
    "l": 36.667
  },
  "oklch": {
    "l": 0.40222,
    "c": 0.18694,
    "h": 297.8
  },
  "luminance": 0.05438
}

Semantic roles & 50–950 ramp

primary
#581E9D
secondary
#90C254
accent
#EB3D9B
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0512
muted
#7E7A81

Preview Lab

Preview with #581E9D

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

Preview Lab → · Contrast checker → · Palette generator →

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