#581F62#581F62

#581F62 is a dark, vivid purple. Relative luminance 0.039; OKLCH L 35.6% C 0.124 H 321.4°. Best body text is #FFFFFF at 11.75:1 contrast (WCAG AA passes).

Color values

HEX#581F62
RGBrgb(88, 31, 98)
HSLhsl(291, 52%, 25%)
HSVhsv(291, 68%, 38%)
CMYKcmyk(10.2%, 68.4%, 0%, 61.6%)
CIE-LABlab(23.46, 36.64, -27.74)
CIE-LCHlch(23.46, 45.96, 322.87°)
OKLaboklab(35.6% 0.0968 -0.0773)
OKLCHoklch(35.6% 0.124 321.4)
XYZxyz(6.7188, 3.9369, 11.9589)
Luminance0.0394 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581F62 #29621F
analogous
#361F62 #581F62 #621F4A
triadic
#581F62 #62581F #1F6258
tetradic
#581F62 #62361F #29621F #1F4A62
square
#581F62 #62361F #29621F #1F4A62
split-complementary
#581F62 #4A621F #1F6236
monochromatic
#150717 #2E1034 #581F62 #822E90 #AB3CBF

Accessibility & contrast

On white

11.75
#581F62 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#581F62 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #581F62
11.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581F62#FFFFFF#000000##FFFFFF
##581F621.0011.751.7911.75
#FFFFFF11.751.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E3464
Deuteranopia (green-blind)
#263A60
Tritanopia (blue-blind)
#592A3D
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #581f62;
/* rgb */ color: rgb(88, 31, 98);
/* oklch */ color: oklch(35.6% 0.124 321.4);
Tailwind
colors: {
  custom: {
    50: '#895f8f',
    500: '#581f62',
    950: '#000000',
  },
}
SCSS
$custom: #581f62;
$custom-light: #895f8f;
$custom-dark: #000000;
JSON
{
  "hex": "#581f62",
  "rgb": {
    "r": 88,
    "g": 31,
    "b": 98
  },
  "hsl": {
    "h": 291.045,
    "s": 51.938,
    "l": 25.294
  },
  "oklch": {
    "l": 0.35596,
    "c": 0.12393,
    "h": 321.4
  },
  "luminance": 0.03937
}

Semantic roles & 50–950 ramp

primary
#581F62
secondary
#529746
accent
#DB4C62
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C050C
muted
#7D797D

Preview Lab

Preview with #581F62

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

Preview Lab → · Contrast checker → · Palette generator →

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