#581988#581988

#581988 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.9% C 0.170 H 305.0°. Best body text is #FFFFFF at 11.00:1 contrast (WCAG AA passes).

Color values

HEX#581988
RGBrgb(88, 25, 136)
HSLhsl(274, 69%, 32%)
HSVhsv(274, 82%, 53%)
CMYKcmyk(35.3%, 81.6%, 0%, 46.7%)
CIE-LABlab(25.40, 47.86, -48.92)
CIE-LCHlch(25.40, 68.44, 314.37°)
OKLaboklab(37.88% 0.0975 -0.1394)
OKLCHoklch(37.88% 0.17 305)
XYZxyz(8.8151, 4.5476, 23.7012)
Luminance0.0455 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581988 #498819
analogous
#211988 #581988 #881981
triadic
#581988 #885819 #198858
tetradic
#581988 #882119 #498819 #198188
square
#581988 #882119 #498819 #198188
split-complementary
#581988 #818819 #198821
monochromatic
#150621 #370F54 #581988 #7923BC #9840DC

Accessibility & contrast

On white

11.00
#581988 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#581988 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #581988
11.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581988#FFFFFF#000000##FFFFFF
##5819881.0011.001.9111.00
#FFFFFF11.001.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8B
Deuteranopia (green-blind)
#003C86
Tritanopia (blue-blind)
#4F3751
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #581988;
/* rgb */ color: rgb(88, 25, 136);
/* oklch */ color: oklch(37.9% 0.170 305.0);
Tailwind
colors: {
  custom: {
    50: '#8c5eac',
    500: '#581988',
    950: '#000000',
  },
}
SCSS
$custom: #581988;
$custom-light: #8c5eac;
$custom-dark: #000000;
JSON
{
  "hex": "#581988",
  "rgb": {
    "r": 88,
    "g": 25,
    "b": 136
  },
  "hsl": {
    "h": 274.054,
    "s": 68.944,
    "l": 31.569
  },
  "oklch": {
    "l": 0.37876,
    "c": 0.17015,
    "h": 305
  },
  "luminance": 0.04548
}

Semantic roles & 50–950 ramp

primary
#581988
secondary
#76BB41
accent
#EC3C88
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #581988

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

Preview Lab → · Contrast checker → · Palette generator →

#581988 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva