#581C88#581C88

#581C88 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.2% C 0.167 H 304.6°. Best body text is #FFFFFF at 10.84:1 contrast (WCAG AA passes).

Color values

HEX#581C88
RGBrgb(88, 28, 136)
HSLhsl(273, 66%, 32%)
HSVhsv(273, 79%, 53%)
CMYKcmyk(35.3%, 79.4%, 0%, 46.7%)
CIE-LABlab(25.81, 46.68, -48.26)
CIE-LCHlch(25.81, 67.14, 314.05°)
OKLaboklab(38.16% 0.095 -0.1375)
OKLCHoklch(38.16% 0.167 304.6)
XYZxyz(8.8827, 4.6828, 23.7237)
Luminance0.0468 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581C88 #4C881C
analogous
#221C88 #581C88 #881C82
triadic
#581C88 #88581C #1C8858
tetradic
#581C88 #88221C #4C881C #1C8288
square
#581C88 #88221C #4C881C #1C8288
split-complementary
#581C88 #82881C #1C8822
monochromatic
#160722 #371255 #581C88 #7926BB #9746D9

Accessibility & contrast

On white

10.84
#581C88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#581C88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #581C88
10.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581C88#FFFFFF#000000##FFFFFF
##581C881.0010.841.9410.84
#FFFFFF10.841.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8B
Deuteranopia (green-blind)
#003D86
Tritanopia (blue-blind)
#4F3851
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #581c88;
/* rgb */ color: rgb(88, 28, 136);
/* oklch */ color: oklch(38.2% 0.167 304.6);
Tailwind
colors: {
  custom: {
    50: '#8c60ac',
    500: '#581c88',
    950: '#000000',
  },
}
SCSS
$custom: #581c88;
$custom-light: #8c60ac;
$custom-dark: #000000;
JSON
{
  "hex": "#581c88",
  "rgb": {
    "r": 88,
    "g": 28,
    "b": 136
  },
  "hsl": {
    "h": 273.333,
    "s": 65.854,
    "l": 32.157
  },
  "oklch": {
    "l": 0.3816,
    "c": 0.16711,
    "h": 304.6
  },
  "luminance": 0.04683
}

Semantic roles & 50–950 ramp

primary
#581C88
secondary
#79BA45
accent
#E93F8A
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #581C88

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

Preview Lab → · Contrast checker → · Palette generator →

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