#581281#581281

#581281 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.7% C 0.170 H 308.2°. Best body text is #FFFFFF at 11.55:1 contrast (WCAG AA passes).

Color values

HEX#581281
RGBrgb(88, 18, 129)
HSLhsl(278, 76%, 29%)
HSVhsv(278, 86%, 51%)
CMYKcmyk(31.8%, 86%, 0%, 49.4%)
CIE-LABlab(23.97, 48.65, -46.86)
CIE-LCHlch(23.97, 67.55, 316.08°)
OKLaboklab(36.69% 0.1049 -0.1333)
OKLCHoklch(36.69% 0.17 308.2)
XYZxyz(8.2024, 4.0924, 21.1224)
Luminance0.0409 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581281 #3B8112
analogous
#211281 #581281 #811273
triadic
#581281 #815812 #128158
tetradic
#581281 #812112 #3B8112 #127381
square
#581281 #812112 #3B8112 #127381
split-complementary
#581281 #738112 #128121
monochromatic
#12041B #330B4B #581281 #7D19B7 #9E2CE2

Accessibility & contrast

On white

11.55
#581281 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#581281 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #581281
11.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581281#FFFFFF#000000##FFFFFF
##5812811.0011.551.8211.55
#FFFFFF11.551.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.551.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: #581281;
/* rgb */ color: rgb(88, 18, 129);
/* oklch */ color: oklch(36.7% 0.170 308.2);
Tailwind
colors: {
  custom: {
    50: '#8c5ba6',
    500: '#581281',
    950: '#000000',
  },
}
SCSS
$custom: #581281;
$custom-light: #8c5ba6;
$custom-dark: #000000;
JSON
{
  "hex": "#581281",
  "rgb": {
    "r": 88,
    "g": 18,
    "b": 129
  },
  "hsl": {
    "h": 277.838,
    "s": 75.51,
    "l": 28.824
  },
  "oklch": {
    "l": 0.36693,
    "c": 0.16965,
    "h": 308.2
  },
  "luminance": 0.04092
}

Semantic roles & 50–950 ramp

primary
#581281
secondary
#67B738
accent
#F2367B
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D040F
muted
#7E797F

Preview Lab

Preview with #581281

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

Preview Lab → · Contrast checker → · Palette generator →

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