#581C8F#581C8F

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

Color values

HEX#581C8F
RGBrgb(88, 28, 143)
HSLhsl(271, 67%, 34%)
HSVhsv(271, 80%, 56%)
CMYKcmyk(38.5%, 80.4%, 0%, 43.9%)
CIE-LABlab(26.41, 48.37, -51.63)
CIE-LCHlch(26.41, 70.75, 313.13°)
OKLaboklab(38.77% 0.0931 -0.1474)
OKLCHoklch(38.77% 0.174 302.3)
XYZxyz(9.3965, 4.8884, 26.4298)
Luminance0.0489 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581C8F #538F1C
analogous
#1E1C8F #581C8F #8F1C8C
triadic
#581C8F #8F581C #1C8F58
tetradic
#581C8F #8F1E1C #538F1C #1C8C8F
square
#581C8F #8F1E1C #538F1C #1C8C8F
split-complementary
#581C8F #8C8F1C #1C8F1E
monochromatic
#190829 #39125C #581C8F #7726C2 #964ADC

Accessibility & contrast

On white

10.62
#581C8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #581C8F
10.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581C8F#FFFFFF#000000##FFFFFF
##581C8F1.0010.621.9810.62
#FFFFFF10.621.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E92
Deuteranopia (green-blind)
#003E8D
Tritanopia (blue-blind)
#4C3B56
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #581c8f;
/* rgb */ color: rgb(88, 28, 143);
/* oklch */ color: oklch(38.8% 0.174 302.3);
Tailwind
colors: {
  custom: {
    50: '#8d60b1',
    500: '#581c8f',
    950: '#000000',
  },
}
SCSS
$custom: #581c8f;
$custom-light: #8d60b1;
$custom-dark: #000000;
JSON
{
  "hex": "#581c8f",
  "rgb": {
    "r": 88,
    "g": 28,
    "b": 143
  },
  "hsl": {
    "h": 271.304,
    "s": 67.251,
    "l": 33.529
  },
  "oklch": {
    "l": 0.38768,
    "c": 0.17433,
    "h": 302.3
  },
  "luminance": 0.04888
}

Semantic roles & 50–950 ramp

primary
#581C8F
secondary
#81BE49
accent
#EA3E90
background
#F9F5FB
surface
#F1EAF6
border
#CBC6D0
text
#0D0511
muted
#7E7980

Preview Lab

Preview with #581C8F

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

Preview Lab → · Contrast checker → · Palette generator →

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