#581C98#581C98

#581C98 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.6% C 0.184 H 299.5°. Best body text is #FFFFFF at 10.32:1 contrast (WCAG AA passes).

Color values

HEX#581C98
RGBrgb(88, 28, 152)
HSLhsl(269, 69%, 35%)
HSVhsv(269, 82%, 60%)
CMYKcmyk(42.1%, 81.6%, 0%, 40.4%)
CIE-LABlab(27.22, 50.58, -55.86)
CIE-LCHlch(27.22, 75.36, 312.16°)
OKLaboklab(39.58% 0.0903 -0.1598)
OKLCHoklch(39.58% 0.184 299.5)
XYZxyz(10.1058, 5.1721, 30.1656)
Luminance0.0517 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581C98 #5C981C
analogous
#1C1E98 #581C98 #961C98
triadic
#581C98 #98581C #1C9858
tetradic
#581C98 #981C1E #5C981C #1C9896
square
#581C98 #981C1E #5C981C #1C9896
split-complementary
#581C98 #98961C #1E981C
monochromatic
#1C0931 #3A1264 #581C98 #7626CC #9550DF

Accessibility & contrast

On white

10.32
#581C98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#581C98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #581C98
10.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581C98#FFFFFF#000000##FFFFFF
##581C981.0010.322.0310.32
#FFFFFF10.321.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00409B
Deuteranopia (green-blind)
#003F96
Tritanopia (blue-blind)
#483F5B
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #581c98;
/* rgb */ color: rgb(88, 28, 152);
/* oklch */ color: oklch(39.6% 0.184 299.5);
Tailwind
colors: {
  custom: {
    50: '#8e61b7',
    500: '#581c98',
    950: '#000000',
  },
}
SCSS
$custom: #581c98;
$custom-light: #8e61b7;
$custom-dark: #000000;
JSON
{
  "hex": "#581c98",
  "rgb": {
    "r": 88,
    "g": 28,
    "b": 152
  },
  "hsl": {
    "h": 269.032,
    "s": 68.889,
    "l": 35.294
  },
  "oklch": {
    "l": 0.39577,
    "c": 0.18359,
    "h": 299.5
  },
  "luminance": 0.05172
}

Semantic roles & 50–950 ramp

primary
#581C98
secondary
#8AC14E
accent
#EC3C97
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0511
muted
#7E7A80

Preview Lab

Preview with #581C98

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

Preview Lab → · Contrast checker → · Palette generator →

#581C98 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva