#581F7C#581F7C

#581F7C is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.5% C 0.151 H 308.8°. Best body text is #FFFFFF at 11.04:1 contrast (WCAG AA passes).

Color values

HEX#581F7C
RGBrgb(88, 31, 124)
HSLhsl(277, 60%, 30%)
HSVhsv(277, 75%, 49%)
CMYKcmyk(29%, 75%, 0%, 51.4%)
CIE-LABlab(25.29, 42.52, -41.55)
CIE-LCHlch(25.29, 59.46, 315.66°)
OKLaboklab(37.49% 0.0946 -0.1178)
OKLCHoklch(37.49% 0.151 308.8)
XYZxyz(8.1518, 4.5101, 19.5060)
Luminance0.0451 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581F7C #437C1F
analogous
#291F7C #581F7C #7C1F71
triadic
#581F7C #7C581F #1F7C58
tetradic
#581F7C #7C291F #437C1F #1F717C
square
#581F7C #7C291F #437C1F #1F717C
split-complementary
#581F7C #717C1F #1F7C29
monochromatic
#13071A #35134B #581F7C #7B2BAD #9A45D0

Accessibility & contrast

On white

11.04
#581F7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#581F7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #581F7C
11.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581F7C#FFFFFF#000000##FFFFFF
##581F7C1.0011.041.9011.04
#FFFFFF11.041.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A7F
Deuteranopia (green-blind)
#063D7A
Tritanopia (blue-blind)
#53344B
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #581f7c;
/* rgb */ color: rgb(88, 31, 124);
/* oklch */ color: oklch(37.5% 0.151 308.8);
Tailwind
colors: {
  custom: {
    50: '#8b60a3',
    500: '#581f7c',
    950: '#000000',
  },
}
SCSS
$custom: #581f7c;
$custom-light: #8b60a3;
$custom-dark: #000000;
JSON
{
  "hex": "#581f7c",
  "rgb": {
    "r": 88,
    "g": 31,
    "b": 124
  },
  "hsl": {
    "h": 276.774,
    "s": 60,
    "l": 30.392
  },
  "oklch": {
    "l": 0.37488,
    "c": 0.15111,
    "h": 308.8
  },
  "luminance": 0.0451
}

Semantic roles & 50–950 ramp

primary
#581F7C
secondary
#70AF48
accent
#E34582
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #581F7C

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

Preview Lab → · Contrast checker → · Palette generator →

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