#581F98#581F98

#581F98 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.9% C 0.181 H 299.1°. Best body text is #FFFFFF at 10.17:1 contrast (WCAG AA passes).

Color values

HEX#581F98
RGBrgb(88, 31, 152)
HSLhsl(268, 66%, 36%)
HSVhsv(268, 80%, 60%)
CMYKcmyk(42.1%, 79.6%, 0%, 40.4%)
CIE-LABlab(27.63, 49.39, -55.19)
CIE-LCHlch(27.63, 74.06, 311.82°)
OKLaboklab(39.86% 0.088 -0.1579)
OKLCHoklch(39.86% 0.181 299.1)
XYZxyz(10.1805, 5.3215, 30.1905)
Luminance0.0532 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581F98 #5F981F
analogous
#1F2398 #581F98 #941F98
triadic
#581F98 #98581F #1F9858
tetradic
#581F98 #981F23 #5F981F #1F9894
square
#581F98 #981F23 #5F981F #1F9894
split-complementary
#581F98 #98941F #23981F
monochromatic
#1D0A32 #3B1565 #581F98 #7529CB #9555DC

Accessibility & contrast

On white

10.17
#581F98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#581F98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #581F98
10.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581F98#FFFFFF#000000##FFFFFF
##581F981.0010.172.0610.17
#FFFFFF10.171.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419B
Deuteranopia (green-blind)
#004096
Tritanopia (blue-blind)
#48405B
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #581f98;
/* rgb */ color: rgb(88, 31, 152);
/* oklch */ color: oklch(39.9% 0.181 299.1);
Tailwind
colors: {
  custom: {
    50: '#8e62b7',
    500: '#581f98',
    950: '#000000',
  },
}
SCSS
$custom: #581f98;
$custom-light: #8e62b7;
$custom-dark: #000000;
JSON
{
  "hex": "#581f98",
  "rgb": {
    "r": 88,
    "g": 31,
    "b": 152
  },
  "hsl": {
    "h": 268.264,
    "s": 66.12,
    "l": 35.882
  },
  "oklch": {
    "l": 0.39864,
    "c": 0.18074,
    "h": 299.1
  },
  "luminance": 0.05322
}

Semantic roles & 50–950 ramp

primary
#581F98
secondary
#8DC053
accent
#E93F99
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0511
muted
#7E7A80

Preview Lab

Preview with #581F98

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

Preview Lab → · Contrast checker → · Palette generator →

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