#581F96#581F96

#581F96 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.7% C 0.179 H 299.7°. Best body text is #FFFFFF at 10.24:1 contrast (WCAG AA passes).

Color values

HEX#581F96
RGBrgb(88, 31, 150)
HSLhsl(269, 66%, 35%)
HSVhsv(269, 79%, 59%)
CMYKcmyk(41.3%, 79.3%, 0%, 41.2%)
CIE-LABlab(27.45, 48.88, -54.25)
CIE-LCHlch(27.45, 73.03, 312.02°)
OKLaboklab(39.68% 0.0886 -0.1551)
OKLCHoklch(39.68% 0.179 299.7)
XYZxyz(10.0181, 5.2566, 29.3351)
Luminance0.0526 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581F96 #5D961F
analogous
#1F2296 #581F96 #931F96
triadic
#581F96 #96581F #1F9658
tetradic
#581F96 #961F22 #5D961F #1F9693
square
#581F96 #961F22 #5D961F #1F9693
split-complementary
#581F96 #96931F #22961F
monochromatic
#1C0A31 #3A1563 #581F96 #7629C9 #9554DC

Accessibility & contrast

On white

10.24
#581F96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#581F96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #581F96
10.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581F96#FFFFFF#000000##FFFFFF
##581F961.0010.242.0510.24
#FFFFFF10.241.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004199
Deuteranopia (green-blind)
#004094
Tritanopia (blue-blind)
#493F5A
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #581f96;
/* rgb */ color: rgb(88, 31, 150);
/* oklch */ color: oklch(39.7% 0.179 299.7);
Tailwind
colors: {
  custom: {
    50: '#8e62b6',
    500: '#581f96',
    950: '#000000',
  },
}
SCSS
$custom: #581f96;
$custom-light: #8e62b6;
$custom-dark: #000000;
JSON
{
  "hex": "#581f96",
  "rgb": {
    "r": 88,
    "g": 31,
    "b": 150
  },
  "hsl": {
    "h": 268.739,
    "s": 65.746,
    "l": 35.49
  },
  "oklch": {
    "l": 0.39684,
    "c": 0.17863,
    "h": 299.7
  },
  "luminance": 0.05257
}

Semantic roles & 50–950 ramp

primary
#581F96
secondary
#8BBF52
accent
#E93F97
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0511
muted
#7E7A80

Preview Lab

Preview with #581F96

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

Preview Lab → · Contrast checker → · Palette generator →

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