#581C8E#581C8E

#581C8E is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.7% C 0.173 H 302.6°. Best body text is #FFFFFF at 10.65:1 contrast (WCAG AA passes).

Color values

HEX#581C8E
RGBrgb(88, 28, 142)
HSLhsl(272, 67%, 33%)
HSVhsv(272, 80%, 56%)
CMYKcmyk(38%, 80.3%, 0%, 44.3%)
CIE-LABlab(26.33, 48.13, -51.15)
CIE-LCHlch(26.33, 70.24, 313.26°)
OKLaboklab(38.68% 0.0934 -0.146)
OKLCHoklch(38.68% 0.173 302.6)
XYZxyz(9.3211, 4.8582, 26.0326)
Luminance0.0486 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581C8E #528E1C
analogous
#1F1C8E #581C8E #8E1C8B
triadic
#581C8E #8E581C #1C8E58
tetradic
#581C8E #8E1F1C #528E1C #1C8B8E
square
#581C8E #8E1F1C #528E1C #1C8B8E
split-complementary
#581C8E #8B8E1C #1C8E1F
monochromatic
#190828 #38125B #581C8E #7826C1 #9649DB

Accessibility & contrast

On white

10.65
#581C8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#581C8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #581C8E
10.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581C8E#FFFFFF#000000##FFFFFF
##581C8E1.0010.651.9710.65
#FFFFFF10.651.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D91
Deuteranopia (green-blind)
#003E8C
Tritanopia (blue-blind)
#4D3B55
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #581c8e;
/* rgb */ color: rgb(88, 28, 142);
/* oklch */ color: oklch(38.7% 0.173 302.6);
Tailwind
colors: {
  custom: {
    50: '#8d60b0',
    500: '#581c8e',
    950: '#000000',
  },
}
SCSS
$custom: #581c8e;
$custom-light: #8d60b0;
$custom-dark: #000000;
JSON
{
  "hex": "#581c8e",
  "rgb": {
    "r": 88,
    "g": 28,
    "b": 142
  },
  "hsl": {
    "h": 271.579,
    "s": 67.059,
    "l": 33.333
  },
  "oklch": {
    "l": 0.3868,
    "c": 0.17329,
    "h": 302.6
  },
  "luminance": 0.04858
}

Semantic roles & 50–950 ramp

primary
#581C8E
secondary
#80BD49
accent
#EA3E8F
background
#F9F5FA
surface
#F1EAF5
border
#CBC6CF
text
#0D0511
muted
#7E7980

Preview Lab

Preview with #581C8E

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

Preview Lab → · Contrast checker → · Palette generator →

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