#581A7F#581A7F

#581A7F is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.2% C 0.160 H 308.2°. Best body text is #FFFFFF at 11.23:1 contrast (WCAG AA passes).

Color values

HEX#581A7F
RGBrgb(88, 26, 127)
HSLhsl(277, 66%, 30%)
HSVhsv(277, 80%, 50%)
CMYKcmyk(30.7%, 79.5%, 0%, 50.2%)
CIE-LABlab(24.78, 45.36, -44.28)
CIE-LCHlch(24.78, 63.38, 315.69°)
OKLaboklab(37.21% 0.099 -0.1258)
OKLCHoklch(37.21% 0.16 308.2)
XYZxyz(8.2239, 4.3459, 20.4802)
Luminance0.0435 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581A7F #417F1A
analogous
#261A7F #581A7F #7F1A73
triadic
#581A7F #7F581A #1A7F58
tetradic
#581A7F #7F261A #417F1A #1A737F
square
#581A7F #7F261A #417F1A #1A737F
split-complementary
#581A7F #737F1A #1A7F26
monochromatic
#120519 #35104C #581A7F #7B24B2 #9B3CD7

Accessibility & contrast

On white

11.23
#581A7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#581A7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #581A7F
11.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581A7F#FFFFFF#000000##FFFFFF
##581A7F1.0011.231.8711.23
#FFFFFF11.231.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003982
Deuteranopia (green-blind)
#003B7D
Tritanopia (blue-blind)
#52334C
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #581a7f;
/* rgb */ color: rgb(88, 26, 127);
/* oklch */ color: oklch(37.2% 0.160 308.2);
Tailwind
colors: {
  custom: {
    50: '#8c5ea5',
    500: '#581a7f',
    950: '#000000',
  },
}
SCSS
$custom: #581a7f;
$custom-light: #8c5ea5;
$custom-dark: #000000;
JSON
{
  "hex": "#581a7f",
  "rgb": {
    "r": 88,
    "g": 26,
    "b": 127
  },
  "hsl": {
    "h": 276.832,
    "s": 66.013,
    "l": 30
  },
  "oklch": {
    "l": 0.37205,
    "c": 0.16006,
    "h": 308.2
  },
  "luminance": 0.04346
}

Semantic roles & 50–950 ramp

primary
#581A7F
secondary
#6EB342
accent
#E93F81
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #581A7F

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

Preview Lab → · Contrast checker → · Palette generator →

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