#581782#581782

#581782 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.2% C 0.166 H 307.4°. Best body text is #FFFFFF at 11.29:1 contrast (WCAG AA passes).

Color values

HEX#581782
RGBrgb(88, 23, 130)
HSLhsl(276, 70%, 30%)
HSVhsv(276, 82%, 51%)
CMYKcmyk(32.3%, 82.3%, 0%, 49%)
CIE-LABlab(24.64, 47.19, -46.41)
CIE-LCHlch(24.64, 66.19, 315.48°)
OKLaboklab(37.18% 0.1008 -0.132)
OKLCHoklch(37.18% 0.166 307.4)
XYZxyz(8.3593, 4.2993, 21.5042)
Luminance0.0430 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581782 #418217
analogous
#231782 #581782 #821776
triadic
#581782 #825817 #178258
tetradic
#581782 #822317 #418217 #177682
square
#581782 #822317 #418217 #177682
split-complementary
#581782 #768217 #178223
monochromatic
#12051A #350E4E #581782 #7B20B6 #9B38DC

Accessibility & contrast

On white

11.29
#581782 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#581782 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #581782
11.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581782#FFFFFF#000000##FFFFFF
##5817821.0011.291.8611.29
#FFFFFF11.291.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.291.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: #581782;
/* rgb */ color: rgb(88, 23, 130);
/* oklch */ color: oklch(37.2% 0.166 307.4);
Tailwind
colors: {
  custom: {
    50: '#8c5da7',
    500: '#581782',
    950: '#000000',
  },
}
SCSS
$custom: #581782;
$custom-light: #8c5da7;
$custom-dark: #000000;
JSON
{
  "hex": "#581782",
  "rgb": {
    "r": 88,
    "g": 23,
    "b": 130
  },
  "hsl": {
    "h": 276.449,
    "s": 69.935,
    "l": 30
  },
  "oklch": {
    "l": 0.37181,
    "c": 0.16613,
    "h": 307.4
  },
  "luminance": 0.04299
}

Semantic roles & 50–950 ramp

primary
#581782
secondary
#6EB63E
accent
#ED3B81
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0D0510
muted
#7D797F

Preview Lab

Preview with #581782

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

Preview Lab → · Contrast checker → · Palette generator →

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