#581F83#581F83

#581F83 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.1% C 0.159 H 306.1°. Best body text is #FFFFFF at 10.83:1 contrast (WCAG AA passes).

Color values

HEX#581F83
RGBrgb(88, 31, 131)
HSLhsl(274, 62%, 32%)
HSVhsv(274, 76%, 51%)
CMYKcmyk(32.8%, 76.3%, 0%, 48.6%)
CIE-LABlab(25.84, 44.20, -45.07)
CIE-LCHlch(25.84, 63.13, 314.44°)
OKLaboklab(38.05% 0.0933 -0.1282)
OKLCHoklch(38.05% 0.159 306.1)
XYZxyz(8.6103, 4.6935, 21.9207)
Luminance0.0469 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581F83 #4A831F
analogous
#261F83 #581F83 #831F7C
triadic
#581F83 #83581F #1F8358
tetradic
#581F83 #83261F #4A831F #1F7C83
square
#581F83 #83261F #4A831F #1F7C83
split-complementary
#581F83 #7C831F #1F8326
monochromatic
#160820 #371352 #581F83 #792BB4 #9849D4

Accessibility & contrast

On white

10.83
#581F83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#581F83 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #581F83
10.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581F83#FFFFFF#000000##FFFFFF
##581F831.0010.831.9410.83
#FFFFFF10.831.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C86
Deuteranopia (green-blind)
#003D81
Tritanopia (blue-blind)
#50374F
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #581f83;
/* rgb */ color: rgb(88, 31, 131);
/* oklch */ color: oklch(38.1% 0.159 306.1);
Tailwind
colors: {
  custom: {
    50: '#8c61a8',
    500: '#581f83',
    950: '#000000',
  },
}
SCSS
$custom: #581f83;
$custom-light: #8c61a8;
$custom-dark: #000000;
JSON
{
  "hex": "#581f83",
  "rgb": {
    "r": 88,
    "g": 31,
    "b": 131
  },
  "hsl": {
    "h": 274.2,
    "s": 61.728,
    "l": 31.765
  },
  "oklch": {
    "l": 0.38053,
    "c": 0.15853,
    "h": 306.1
  },
  "luminance": 0.04693
}

Semantic roles & 50–950 ramp

primary
#581F83
secondary
#77B648
accent
#E54389
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #581F83

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

Preview Lab → · Contrast checker → · Palette generator →

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