#581F8B#581F8B

#581F8B is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.7% C 0.167 H 303.2°. Best body text is #FFFFFF at 10.59:1 contrast (WCAG AA passes).

Color values

HEX#581F8B
RGBrgb(88, 31, 139)
HSLhsl(272, 64%, 33%)
HSVhsv(272, 78%, 55%)
CMYKcmyk(36.7%, 77.7%, 0%, 45.5%)
CIE-LABlab(26.50, 46.15, -49.00)
CIE-LCHlch(26.50, 67.32, 313.28°)
OKLaboklab(38.72% 0.0915 -0.1397)
OKLCHoklch(38.72% 0.167 303.2)
XYZxyz(9.1736, 4.9188, 24.8872)
Luminance0.0492 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581F8B #528B1F
analogous
#221F8B #581F8B #8B1F88
triadic
#581F8B #8B581F #1F8B58
tetradic
#581F8B #8B221F #528B1F #1F888B
square
#581F8B #8B221F #528B1F #1F888B
split-complementary
#581F8B #888B1F #1F8B22
monochromatic
#190927 #381459 #581F8B #782ABD #964DD7

Accessibility & contrast

On white

10.59
#581F8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#581F8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #581F8B
10.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581F8B#FFFFFF#000000##FFFFFF
##581F8B1.0010.591.9810.59
#FFFFFF10.591.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8E
Deuteranopia (green-blind)
#003E89
Tritanopia (blue-blind)
#4E3B54
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #581f8b;
/* rgb */ color: rgb(88, 31, 139);
/* oklch */ color: oklch(38.7% 0.167 303.2);
Tailwind
colors: {
  custom: {
    50: '#8c61ae',
    500: '#581f8b',
    950: '#000000',
  },
}
SCSS
$custom: #581f8b;
$custom-light: #8c61ae;
$custom-dark: #000000;
JSON
{
  "hex": "#581f8b",
  "rgb": {
    "r": 88,
    "g": 31,
    "b": 139
  },
  "hsl": {
    "h": 271.667,
    "s": 63.529,
    "l": 33.333
  },
  "oklch": {
    "l": 0.38723,
    "c": 0.16701,
    "h": 303.2
  },
  "luminance": 0.04919
}

Semantic roles & 50–950 ramp

primary
#581F8B
secondary
#80BA4C
accent
#E7418F
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0510
muted
#7E7A7F

Preview Lab

Preview with #581F8B

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

Preview Lab → · Contrast checker → · Palette generator →

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