#581F7B#581F7B

#581F7B is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.4% C 0.150 H 309.2°. Best body text is #FFFFFF at 11.07:1 contrast (WCAG AA passes).

Color values

HEX#581F7B
RGBrgb(88, 31, 123)
HSLhsl(277, 60%, 30%)
HSVhsv(277, 75%, 48%)
CMYKcmyk(28.5%, 74.8%, 0%, 51.8%)
CIE-LABlab(25.21, 42.29, -41.05)
CIE-LCHlch(25.21, 58.93, 315.85°)
OKLaboklab(37.41% 0.0948 -0.1163)
OKLCHoklch(37.41% 0.15 309.2)
XYZxyz(8.0889, 4.4849, 19.1746)
Luminance0.0449 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581F7B #427B1F
analogous
#2A1F7B #581F7B #7B1F70
triadic
#581F7B #7B581F #1F7B58
tetradic
#581F7B #7B2A1F #427B1F #1F707B
square
#581F7B #7B2A1F #427B1F #1F707B
split-complementary
#581F7B #707B1F #1F7B2A
monochromatic
#120619 #35134A #581F7B #7B2BAC #9B44D0

Accessibility & contrast

On white

11.07
#581F7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #581F7B
11.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581F7B#FFFFFF#000000##FFFFFF
##581F7B1.0011.071.9011.07
#FFFFFF11.071.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397E
Deuteranopia (green-blind)
#083D79
Tritanopia (blue-blind)
#53344B
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #581f7b;
/* rgb */ color: rgb(88, 31, 123);
/* oklch */ color: oklch(37.4% 0.150 309.2);
Tailwind
colors: {
  custom: {
    50: '#8b60a2',
    500: '#581f7b',
    950: '#000000',
  },
}
SCSS
$custom: #581f7b;
$custom-light: #8b60a2;
$custom-dark: #000000;
JSON
{
  "hex": "#581f7b",
  "rgb": {
    "r": 88,
    "g": 31,
    "b": 123
  },
  "hsl": {
    "h": 277.174,
    "s": 59.74,
    "l": 30.196
  },
  "oklch": {
    "l": 0.3741,
    "c": 0.15006,
    "h": 309.2
  },
  "luminance": 0.04485
}

Semantic roles & 50–950 ramp

primary
#581F7B
secondary
#6FAE48
accent
#E34581
background
#F8F5FA
surface
#F0EAF3
border
#CBC6CD
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #581F7B

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

Preview Lab → · Contrast checker → · Palette generator →

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