#581F8C#581F8C

#581F8C is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.8% C 0.168 H 302.9°. Best body text is #FFFFFF at 10.55:1 contrast (WCAG AA passes).

Color values

HEX#581F8C
RGBrgb(88, 31, 140)
HSLhsl(271, 64%, 34%)
HSVhsv(271, 78%, 55%)
CMYKcmyk(37.1%, 77.9%, 0%, 45.1%)
CIE-LABlab(26.59, 46.40, -49.49)
CIE-LCHlch(26.59, 67.84, 313.16°)
OKLaboklab(38.81% 0.0913 -0.1411)
OKLCHoklch(38.81% 0.168 302.9)
XYZxyz(9.2470, 4.9481, 25.2738)
Luminance0.0495 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581F8C #538C1F
analogous
#211F8C #581F8C #8C1F89
triadic
#581F8C #8C581F #1F8C58
tetradic
#581F8C #8C211F #538C1F #1F898C
square
#581F8C #8C211F #538C1F #1F898C
split-complementary
#581F8C #898C1F #1F8C21
monochromatic
#190928 #39145A #581F8C #772ABE #964ED8

Accessibility & contrast

On white

10.55
#581F8C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#581F8C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #581F8C
10.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581F8C#FFFFFF#000000##FFFFFF
##581F8C1.0010.551.9910.55
#FFFFFF10.551.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8F
Deuteranopia (green-blind)
#003F8A
Tritanopia (blue-blind)
#4D3B54
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #581f8c;
/* rgb */ color: rgb(88, 31, 140);
/* oklch */ color: oklch(38.8% 0.168 302.9);
Tailwind
colors: {
  custom: {
    50: '#8c61ae',
    500: '#581f8c',
    950: '#000000',
  },
}
SCSS
$custom: #581f8c;
$custom-light: #8c61ae;
$custom-dark: #000000;
JSON
{
  "hex": "#581f8c",
  "rgb": {
    "r": 88,
    "g": 31,
    "b": 140
  },
  "hsl": {
    "h": 271.376,
    "s": 63.743,
    "l": 33.529
  },
  "oklch": {
    "l": 0.38809,
    "c": 0.16806,
    "h": 302.9
  },
  "luminance": 0.04948
}

Semantic roles & 50–950 ramp

primary
#581F8C
secondary
#81BB4C
accent
#E74190
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0510
muted
#7E7A7F

Preview Lab

Preview with #581F8C

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

Preview Lab → · Contrast checker → · Palette generator →

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