#581FA8#581FA8

#581FA8 is a dark, vivid violet. Relative luminance 0.059; OKLCH L 41.3% C 0.198 H 294.8°. Best body text is #FFFFFF at 9.65:1 contrast (WCAG AA passes).

Color values

HEX#581FA8
RGBrgb(88, 31, 168)
HSLhsl(265, 69%, 39%)
HSVhsv(265, 82%, 66%)
CMYKcmyk(47.6%, 81.5%, 0%, 34.1%)
CIE-LABlab(29.11, 53.43, -62.49)
CIE-LCHlch(29.11, 82.22, 310.53°)
OKLaboklab(41.34% 0.0829 -0.1793)
OKLCHoklch(41.34% 0.198 294.8)
XYZxyz(11.5804, 5.8815, 37.5633)
Luminance0.0588 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581FA8 #6FA81F
analogous
#1F2AA8 #581FA8 #9D1FA8
triadic
#581FA8 #A8581F #1FA858
tetradic
#581FA8 #A81F2A #6FA81F #1FA89D
square
#581FA8 #A81F2A #6FA81F #1FA89D
split-complementary
#581FA8 #A89D1F #2AA81F
monochromatic
#220C41 #3D1574 #581FA8 #742CD8 #9660E2

Accessibility & contrast

On white

9.65
#581FA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#581FA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #581FA8
9.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581FA8#FFFFFF#000000##FFFFFF
##581FA81.009.652.189.65
#FFFFFF9.651.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046AC
Deuteranopia (green-blind)
#0042A6
Tritanopia (blue-blind)
#404765
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #581fa8;
/* rgb */ color: rgb(88, 31, 168);
/* oklch */ color: oklch(41.3% 0.198 294.8);
Tailwind
colors: {
  custom: {
    50: '#9063c3',
    500: '#581fa8',
    950: '#000000',
  },
}
SCSS
$custom: #581fa8;
$custom-light: #9063c3;
$custom-dark: #000000;
JSON
{
  "hex": "#581fa8",
  "rgb": {
    "r": 88,
    "g": 31,
    "b": 168
  },
  "hsl": {
    "h": 264.964,
    "s": 68.844,
    "l": 39.02
  },
  "oklch": {
    "l": 0.41344,
    "c": 0.19753,
    "h": 294.8
  },
  "luminance": 0.05882
}

Semantic roles & 50–950 ramp

primary
#581FA8
secondary
#9AC65D
accent
#EC3CA3
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #581FA8

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

Preview Lab → · Contrast checker → · Palette generator →

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