#581A7E#581A7E

#581A7E is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.1% C 0.159 H 308.6°. Best body text is #FFFFFF at 11.27:1 contrast (WCAG AA passes).

Color values

HEX#581A7E
RGBrgb(88, 26, 126)
HSLhsl(277, 66%, 30%)
HSVhsv(277, 79%, 49%)
CMYKcmyk(30.2%, 79.4%, 0%, 50.6%)
CIE-LABlab(24.70, 45.12, -43.77)
CIE-LCHlch(24.70, 62.87, 315.87°)
OKLaboklab(37.12% 0.0992 -0.1243)
OKLCHoklch(37.12% 0.159 308.6)
XYZxyz(8.1590, 4.3200, 20.1386)
Luminance0.0432 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581A7E #407E1A
analogous
#261A7E #581A7E #7E1A72
triadic
#581A7E #7E581A #1A7E58
tetradic
#581A7E #7E261A #407E1A #1A727E
square
#581A7E #7E261A #407E1A #1A727E
split-complementary
#581A7E #727E1A #1A7E26
monochromatic
#120519 #35104B #581A7E #7B24B1 #9C3CD7

Accessibility & contrast

On white

11.27
#581A7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#581A7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #581A7E
11.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581A7E#FFFFFF#000000##FFFFFF
##581A7E1.0011.271.8611.27
#FFFFFF11.271.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003881
Deuteranopia (green-blind)
#003B7C
Tritanopia (blue-blind)
#52334B
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #581a7e;
/* rgb */ color: rgb(88, 26, 126);
/* oklch */ color: oklch(37.1% 0.159 308.6);
Tailwind
colors: {
  custom: {
    50: '#8b5ea4',
    500: '#581a7e',
    950: '#000000',
  },
}
SCSS
$custom: #581a7e;
$custom-light: #8b5ea4;
$custom-dark: #000000;
JSON
{
  "hex": "#581a7e",
  "rgb": {
    "r": 88,
    "g": 26,
    "b": 126
  },
  "hsl": {
    "h": 277.2,
    "s": 65.789,
    "l": 29.804
  },
  "oklch": {
    "l": 0.37123,
    "c": 0.15905,
    "h": 308.6
  },
  "luminance": 0.0432
}

Semantic roles & 50–950 ramp

primary
#581A7E
secondary
#6CB242
accent
#E93F80
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #581A7E

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

Preview Lab → · Contrast checker → · Palette generator →

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