#581F9E#581F9E

#581F9E is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.4% C 0.187 H 297.4°. Best body text is #FFFFFF at 9.98:1 contrast (WCAG AA passes).

Color values

HEX#581F9E
RGBrgb(88, 31, 158)
HSLhsl(267, 67%, 37%)
HSVhsv(267, 80%, 62%)
CMYKcmyk(44.3%, 80.4%, 0%, 38%)
CIE-LABlab(28.18, 50.90, -57.97)
CIE-LCHlch(28.18, 77.14, 311.28°)
OKLaboklab(40.41% 0.0862 -0.166)
OKLCHoklch(40.41% 0.187 297.4)
XYZxyz(10.6844, 5.5231, 32.8443)
Luminance0.0552 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581F9E #659E1F
analogous
#1F269E #581F9E #981F9E
triadic
#581F9E #9E581F #1F9E58
tetradic
#581F9E #9E1F26 #659E1F #1F9E98
square
#581F9E #9E1F26 #659E1F #1F9E98
split-complementary
#581F9E #9E981F #269E1F
monochromatic
#1F0B38 #3C156B #581F9E #7429D1 #9559DE

Accessibility & contrast

On white

9.98
#581F9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#581F9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #581F9E
9.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581F9E#FFFFFF#000000##FFFFFF
##581F9E1.009.982.109.98
#FFFFFF9.981.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF9.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A1
Deuteranopia (green-blind)
#00419C
Tritanopia (blue-blind)
#45435F
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #581f9e;
/* rgb */ color: rgb(88, 31, 158);
/* oklch */ color: oklch(40.4% 0.187 297.4);
Tailwind
colors: {
  custom: {
    50: '#8e62bc',
    500: '#581f9e',
    950: '#000000',
  },
}
SCSS
$custom: #581f9e;
$custom-light: #8e62bc;
$custom-dark: #000000;
JSON
{
  "hex": "#581f9e",
  "rgb": {
    "r": 88,
    "g": 31,
    "b": 158
  },
  "hsl": {
    "h": 266.929,
    "s": 67.196,
    "l": 37.059
  },
  "oklch": {
    "l": 0.4041,
    "c": 0.18705,
    "h": 297.4
  },
  "luminance": 0.05523
}

Semantic roles & 50–950 ramp

primary
#581F9E
secondary
#92C256
accent
#EA3E9D
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0512
muted
#7E7A81

Preview Lab

Preview with #581F9E

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

Preview Lab → · Contrast checker → · Palette generator →

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