#581381#581381

#581381 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.8% C 0.169 H 308.1°. Best body text is #FFFFFF at 11.51:1 contrast (WCAG AA passes).

Color values

HEX#581381
RGBrgb(88, 19, 129)
HSLhsl(278, 74%, 29%)
HSVhsv(278, 85%, 51%)
CMYKcmyk(31.8%, 85.3%, 0%, 49.4%)
CIE-LABlab(24.08, 48.34, -46.68)
CIE-LCHlch(24.08, 67.20, 316.00°)
OKLaboklab(36.77% 0.1042 -0.1328)
OKLCHoklch(36.77% 0.169 308.1)
XYZxyz(8.2190, 4.1256, 21.1280)
Luminance0.0413 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581381 #3C8113
analogous
#211381 #581381 #811373
triadic
#581381 #815813 #138158
tetradic
#581381 #812113 #3C8113 #137381
square
#581381 #812113 #3C8113 #137381
split-complementary
#581381 #738113 #138121
monochromatic
#12041B #340B4C #581381 #7C1BB6 #9E2EE0

Accessibility & contrast

On white

11.51
#581381 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#581381 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #581381
11.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581381#FFFFFF#000000##FFFFFF
##5813811.0011.511.8311.51
#FFFFFF11.511.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003784
Deuteranopia (green-blind)
#003A7F
Tritanopia (blue-blind)
#51314C
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #581381;
/* rgb */ color: rgb(88, 19, 129);
/* oklch */ color: oklch(36.8% 0.169 308.1);
Tailwind
colors: {
  custom: {
    50: '#8c5ba6',
    500: '#581381',
    950: '#000000',
  },
}
SCSS
$custom: #581381;
$custom-light: #8c5ba6;
$custom-dark: #000000;
JSON
{
  "hex": "#581381",
  "rgb": {
    "r": 88,
    "g": 19,
    "b": 129
  },
  "hsl": {
    "h": 277.636,
    "s": 74.324,
    "l": 29.02
  },
  "oklch": {
    "l": 0.36768,
    "c": 0.16881,
    "h": 308.1
  },
  "luminance": 0.04125
}

Semantic roles & 50–950 ramp

primary
#581381
secondary
#68B63A
accent
#F1377C
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0D040F
muted
#7D797F

Preview Lab

Preview with #581381

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

Preview Lab → · Contrast checker → · Palette generator →

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