#581B88#581B88

#581B88 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 38.1% C 0.168 H 304.8°. Best body text is #FFFFFF at 10.90:1 contrast (WCAG AA passes).

Color values

HEX#581B88
RGBrgb(88, 27, 136)
HSLhsl(274, 67%, 32%)
HSVhsv(274, 80%, 53%)
CMYKcmyk(35.3%, 80.1%, 0%, 46.7%)
CIE-LABlab(25.67, 47.08, -48.49)
CIE-LCHlch(25.67, 67.58, 314.16°)
OKLaboklab(38.06% 0.0959 -0.1382)
OKLCHoklch(38.06% 0.168 304.8)
XYZxyz(8.8594, 4.6362, 23.7159)
Luminance0.0464 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581B88 #4B881B
analogous
#221B88 #581B88 #881B82
triadic
#581B88 #88581B #1B8858
tetradic
#581B88 #88221B #4B881B #1B8288
square
#581B88 #88221B #4B881B #1B8288
split-complementary
#581B88 #82881B #1B8822
monochromatic
#160722 #371155 #581B88 #7925BB #9844DA

Accessibility & contrast

On white

10.90
#581B88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#581B88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #581B88
10.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581B88#FFFFFF#000000##FFFFFF
##581B881.0010.901.9310.90
#FFFFFF10.901.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.901.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #581b88;
/* rgb */ color: rgb(88, 27, 136);
/* oklch */ color: oklch(38.1% 0.168 304.8);
Tailwind
colors: {
  custom: {
    50: '#8c5fac',
    500: '#581b88',
    950: '#000000',
  },
}
SCSS
$custom: #581b88;
$custom-light: #8c5fac;
$custom-dark: #000000;
JSON
{
  "hex": "#581b88",
  "rgb": {
    "r": 88,
    "g": 27,
    "b": 136
  },
  "hsl": {
    "h": 273.578,
    "s": 66.871,
    "l": 31.961
  },
  "oklch": {
    "l": 0.38062,
    "c": 0.16815,
    "h": 304.8
  },
  "luminance": 0.04636
}

Semantic roles & 50–950 ramp

primary
#581B88
secondary
#78BB44
accent
#EA3E8A
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #581B88

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

Preview Lab → · Contrast checker → · Palette generator →

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