#581882#581882

#581882 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.3% C 0.165 H 307.3°. Best body text is #FFFFFF at 11.24:1 contrast (WCAG AA passes).

Color values

HEX#581882
RGBrgb(88, 24, 130)
HSLhsl(276, 69%, 30%)
HSVhsv(276, 82%, 51%)
CMYKcmyk(32.3%, 81.5%, 0%, 49%)
CIE-LABlab(24.76, 46.83, -46.20)
CIE-LCHlch(24.76, 65.78, 315.39°)
OKLaboklab(37.27% 0.1 -0.1314)
OKLCHoklch(37.27% 0.165 307.3)
XYZxyz(8.3795, 4.3398, 21.5110)
Luminance0.0434 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581882 #428218
analogous
#231882 #581882 #821877
triadic
#581882 #825818 #188258
tetradic
#581882 #822318 #428218 #187782
square
#581882 #822318 #428218 #187782
split-complementary
#581882 #778218 #188223
monochromatic
#12051B #350E4E #581882 #7B22B6 #9B3ADB

Accessibility & contrast

On white

11.24
#581882 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#581882 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #581882
11.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581882#FFFFFF#000000##FFFFFF
##5818821.0011.241.8711.24
#FFFFFF11.241.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003985
Deuteranopia (green-blind)
#003B80
Tritanopia (blue-blind)
#51344D
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #581882;
/* rgb */ color: rgb(88, 24, 130);
/* oklch */ color: oklch(37.3% 0.165 307.3);
Tailwind
colors: {
  custom: {
    50: '#8c5da7',
    500: '#581882',
    950: '#000000',
  },
}
SCSS
$custom: #581882;
$custom-light: #8c5da7;
$custom-dark: #000000;
JSON
{
  "hex": "#581882",
  "rgb": {
    "r": 88,
    "g": 24,
    "b": 130
  },
  "hsl": {
    "h": 276.226,
    "s": 68.831,
    "l": 30.196
  },
  "oklch": {
    "l": 0.37269,
    "c": 0.16515,
    "h": 307.3
  },
  "luminance": 0.0434
}

Semantic roles & 50–950 ramp

primary
#581882
secondary
#6FB640
accent
#EC3C82
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0D050F
muted
#7D797F

Preview Lab

Preview with #581882

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

Preview Lab → · Contrast checker → · Palette generator →

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