#581F90#581F90

#581F90 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.2% C 0.172 H 301.6°. Best body text is #FFFFFF at 10.43:1 contrast (WCAG AA passes).

Color values

HEX#581F90
RGBrgb(88, 31, 144)
HSLhsl(270, 65%, 34%)
HSVhsv(270, 78%, 56%)
CMYKcmyk(38.9%, 78.5%, 0%, 43.5%)
CIE-LABlab(26.93, 47.39, -51.41)
CIE-LCHlch(26.93, 69.92, 312.67°)
OKLaboklab(39.16% 0.0902 -0.1468)
OKLCHoklch(39.16% 0.172 301.6)
XYZxyz(9.5473, 5.0682, 26.8554)
Luminance0.0507 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581F90 #57901F
analogous
#1F1F90 #581F90 #901F90
triadic
#581F90 #90581F #1F9058
tetradic
#581F90 #901F1F #57901F #1F9090
square
#581F90 #901F1F #57901F #1F9090
split-complementary
#581F90 #90901F #1F901F
monochromatic
#1A092B #39145E #581F90 #772AC2 #9550D9

Accessibility & contrast

On white

10.43
#581F90 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#581F90 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #581F90
10.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581F90#FFFFFF#000000##FFFFFF
##581F901.0010.432.0110.43
#FFFFFF10.431.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F93
Deuteranopia (green-blind)
#003F8E
Tritanopia (blue-blind)
#4C3D57
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #581f90;
/* rgb */ color: rgb(88, 31, 144);
/* oklch */ color: oklch(39.2% 0.172 301.6);
Tailwind
colors: {
  custom: {
    50: '#8d61b1',
    500: '#581f90',
    950: '#000000',
  },
}
SCSS
$custom: #581f90;
$custom-light: #8d61b1;
$custom-dark: #000000;
JSON
{
  "hex": "#581f90",
  "rgb": {
    "r": 88,
    "g": 31,
    "b": 144
  },
  "hsl": {
    "h": 270.265,
    "s": 64.571,
    "l": 34.314
  },
  "oklch": {
    "l": 0.39155,
    "c": 0.17229,
    "h": 301.6
  },
  "luminance": 0.05068
}

Semantic roles & 50–950 ramp

primary
#581F90
secondary
#85BC4E
accent
#E84093
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0511
muted
#7E7A80

Preview Lab

Preview with #581F90

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

Preview Lab → · Contrast checker → · Palette generator →

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