#581F88#581F88

#581F88 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.5% C 0.164 H 304.3°. Best body text is #FFFFFF at 10.68:1 contrast (WCAG AA passes).

Color values

HEX#581F88
RGBrgb(88, 31, 136)
HSLhsl(273, 63%, 33%)
HSVhsv(273, 77%, 53%)
CMYKcmyk(35.3%, 77.2%, 0%, 46.7%)
CIE-LABlab(26.25, 45.42, -47.54)
CIE-LCHlch(26.25, 65.75, 313.69°)
OKLaboklab(38.47% 0.0922 -0.1354)
OKLCHoklch(38.47% 0.164 304.3)
XYZxyz(8.9574, 4.8323, 23.7486)
Luminance0.0483 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581F88 #4F881F
analogous
#231F88 #581F88 #881F84
triadic
#581F88 #88581F #1F8858
tetradic
#581F88 #88231F #4F881F #1F8488
square
#581F88 #88231F #4F881F #1F8488
split-complementary
#581F88 #84881F #1F8823
monochromatic
#180824 #381456 #581F88 #782ABA #974BD6

Accessibility & contrast

On white

10.68
#581F88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#581F88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #581F88
10.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581F88#FFFFFF#000000##FFFFFF
##581F881.0010.681.9710.68
#FFFFFF10.681.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8B
Deuteranopia (green-blind)
#003E86
Tritanopia (blue-blind)
#4F3952
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #581f88;
/* rgb */ color: rgb(88, 31, 136);
/* oklch */ color: oklch(38.5% 0.164 304.3);
Tailwind
colors: {
  custom: {
    50: '#8c61ab',
    500: '#581f88',
    950: '#000000',
  },
}
SCSS
$custom: #581f88;
$custom-light: #8c61ab;
$custom-dark: #000000;
JSON
{
  "hex": "#581f88",
  "rgb": {
    "r": 88,
    "g": 31,
    "b": 136
  },
  "hsl": {
    "h": 272.571,
    "s": 62.874,
    "l": 32.745
  },
  "oklch": {
    "l": 0.38469,
    "c": 0.16382,
    "h": 304.3
  },
  "luminance": 0.04832
}

Semantic roles & 50–950 ramp

primary
#581F88
secondary
#7DB94A
accent
#E6428D
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0D0510
muted
#7D797F

Preview Lab

Preview with #581F88

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

Preview Lab → · Contrast checker → · Palette generator →

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