#581F95#581F95

#581F95 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.6% C 0.178 H 300.0°. Best body text is #FFFFFF at 10.27:1 contrast (WCAG AA passes).

Color values

HEX#581F95
RGBrgb(88, 31, 149)
HSLhsl(269, 66%, 35%)
HSVhsv(269, 79%, 58%)
CMYKcmyk(40.9%, 79.2%, 0%, 41.6%)
CIE-LABlab(27.36, 48.63, -53.78)
CIE-LCHlch(27.36, 72.51, 312.12°)
OKLaboklab(39.6% 0.0889 -0.1537)
OKLCHoklch(39.6% 0.178 300)
XYZxyz(9.9379, 5.2245, 28.9128)
Luminance0.0522 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581F95 #5C951F
analogous
#1F2195 #581F95 #931F95
triadic
#581F95 #95581F #1F9558
tetradic
#581F95 #951F21 #5C951F #1F9593
square
#581F95 #951F21 #5C951F #1F9593
split-complementary
#581F95 #95931F #21951F
monochromatic
#1C0A30 #3A1462 #581F95 #762AC8 #9553DB

Accessibility & contrast

On white

10.27
#581F95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #581F95
10.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581F95#FFFFFF#000000##FFFFFF
##581F951.0010.272.0510.27
#FFFFFF10.271.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004098
Deuteranopia (green-blind)
#004093
Tritanopia (blue-blind)
#4A3F5A
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #581f95;
/* rgb */ color: rgb(88, 31, 149);
/* oklch */ color: oklch(39.6% 0.178 300.0);
Tailwind
colors: {
  custom: {
    50: '#8d62b5',
    500: '#581f95',
    950: '#000000',
  },
}
SCSS
$custom: #581f95;
$custom-light: #8d62b5;
$custom-dark: #000000;
JSON
{
  "hex": "#581f95",
  "rgb": {
    "r": 88,
    "g": 31,
    "b": 149
  },
  "hsl": {
    "h": 268.983,
    "s": 65.556,
    "l": 35.294
  },
  "oklch": {
    "l": 0.39595,
    "c": 0.17758,
    "h": 300
  },
  "luminance": 0.05225
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #581F95

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

Preview Lab → · Contrast checker → · Palette generator →

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