#581E8C#581E8C

#581E8C is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.7% C 0.169 H 303.0°. Best body text is #FFFFFF at 10.61:1 contrast (WCAG AA passes).

Color values

HEX#581E8C
RGBrgb(88, 30, 140)
HSLhsl(272, 65%, 33%)
HSVhsv(272, 79%, 55%)
CMYKcmyk(37.1%, 78.6%, 0%, 45.1%)
CIE-LABlab(26.44, 46.83, -49.73)
CIE-LCHlch(26.44, 68.31, 313.28°)
OKLaboklab(38.71% 0.0922 -0.1418)
OKLCHoklch(38.71% 0.169 303)
XYZxyz(9.2213, 4.8967, 25.2652)
Luminance0.0490 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581E8C #528C1E
analogous
#211E8C #581E8C #8C1E89
triadic
#581E8C #8C581E #1E8C58
tetradic
#581E8C #8C211E #528C1E #1E898C
square
#581E8C #8C211E #528C1E #1E898C
split-complementary
#581E8C #898C1E #1E8C21
monochromatic
#190827 #38135A #581E8C #7829BE #964CD9

Accessibility & contrast

On white

10.61
#581E8C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#581E8C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #581E8C
10.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581E8C#FFFFFF#000000##FFFFFF
##581E8C1.0010.611.9810.61
#FFFFFF10.611.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.611.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #581e8c;
/* rgb */ color: rgb(88, 30, 140);
/* oklch */ color: oklch(38.7% 0.169 303.0);
Tailwind
colors: {
  custom: {
    50: '#8c61ae',
    500: '#581e8c',
    950: '#000000',
  },
}
SCSS
$custom: #581e8c;
$custom-light: #8c61ae;
$custom-dark: #000000;
JSON
{
  "hex": "#581e8c",
  "rgb": {
    "r": 88,
    "g": 30,
    "b": 140
  },
  "hsl": {
    "h": 271.636,
    "s": 64.706,
    "l": 33.333
  },
  "oklch": {
    "l": 0.38705,
    "c": 0.16915,
    "h": 303
  },
  "luminance": 0.04897
}

Semantic roles & 50–950 ramp

primary
#581E8C
secondary
#80BB4B
accent
#E8408F
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #581E8C

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

Preview Lab → · Contrast checker → · Palette generator →

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