#581682#581682

#581682 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.1% C 0.167 H 307.5°. Best body text is #FFFFFF at 11.34:1 contrast (WCAG AA passes).

Color values

HEX#581682
RGBrgb(88, 22, 130)
HSLhsl(277, 71%, 30%)
HSVhsv(277, 83%, 51%)
CMYKcmyk(32.3%, 83.1%, 0%, 49%)
CIE-LABlab(24.51, 47.55, -46.61)
CIE-LCHlch(24.51, 66.58, 315.58°)
OKLaboklab(37.1% 0.1017 -0.1326)
OKLCHoklch(37.1% 0.167 307.5)
XYZxyz(8.3398, 4.2603, 21.4977)
Luminance0.0426 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581682 #408216
analogous
#221682 #581682 #821676
triadic
#581682 #825816 #168258
tetradic
#581682 #822216 #408216 #167682
square
#581682 #822216 #408216 #167682
split-complementary
#581682 #768216 #168222
monochromatic
#12041A #350D4E #581682 #7B1FB6 #9C35DD

Accessibility & contrast

On white

11.34
#581682 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#581682 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #581682
11.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581682#FFFFFF#000000##FFFFFF
##5816821.0011.341.8511.34
#FFFFFF11.341.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003885
Deuteranopia (green-blind)
#003B80
Tritanopia (blue-blind)
#51334D
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #581682;
/* rgb */ color: rgb(88, 22, 130);
/* oklch */ color: oklch(37.1% 0.167 307.5);
Tailwind
colors: {
  custom: {
    50: '#8c5da7',
    500: '#581682',
    950: '#000000',
  },
}
SCSS
$custom: #581682;
$custom-light: #8c5da7;
$custom-dark: #000000;
JSON
{
  "hex": "#581682",
  "rgb": {
    "r": 88,
    "g": 22,
    "b": 130
  },
  "hsl": {
    "h": 276.667,
    "s": 71.053,
    "l": 29.804
  },
  "oklch": {
    "l": 0.37095,
    "c": 0.16708,
    "h": 307.5
  },
  "luminance": 0.0426
}

Semantic roles & 50–950 ramp

primary
#581682
secondary
#6CB73D
accent
#EE3A80
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0D0510
muted
#7D797F

Preview Lab

Preview with #581682

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

Preview Lab → · Contrast checker → · Palette generator →

#581682 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva