#581A8C#581A8C

#581A8C is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.3% C 0.173 H 303.5°. Best body text is #FFFFFF at 10.82:1 contrast (WCAG AA passes).

Color values

HEX#581A8C
RGBrgb(88, 26, 140)
HSLhsl(273, 69%, 33%)
HSVhsv(273, 81%, 55%)
CMYKcmyk(37.1%, 81.4%, 0%, 45.1%)
CIE-LABlab(25.88, 48.43, -50.64)
CIE-LCHlch(25.88, 70.07, 313.72°)
OKLaboklab(38.32% 0.0956 -0.1445)
OKLCHoklch(38.32% 0.173 303.5)
XYZxyz(9.1264, 4.7070, 25.2336)
Luminance0.0471 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581A8C #4E8C1A
analogous
#1F1A8C #581A8C #8C1A87
triadic
#581A8C #8C581A #1A8C58
tetradic
#581A8C #8C1F1A #4E8C1A #1A878C
square
#581A8C #8C1F1A #4E8C1A #1A878C
split-complementary
#581A8C #878C1A #1A8C1F
monochromatic
#170725 #381058 #581A8C #7824C0 #9744DC

Accessibility & contrast

On white

10.82
#581A8C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #581A8C
10.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581A8C#FFFFFF#000000##FFFFFF
##581A8C1.0010.821.9410.82
#FFFFFF10.821.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8F
Deuteranopia (green-blind)
#003D8A
Tritanopia (blue-blind)
#4D3953
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #581a8c;
/* rgb */ color: rgb(88, 26, 140);
/* oklch */ color: oklch(38.3% 0.173 303.5);
Tailwind
colors: {
  custom: {
    50: '#8d5fae',
    500: '#581a8c',
    950: '#000000',
  },
}
SCSS
$custom: #581a8c;
$custom-light: #8d5fae;
$custom-dark: #000000;
JSON
{
  "hex": "#581a8c",
  "rgb": {
    "r": 88,
    "g": 26,
    "b": 140
  },
  "hsl": {
    "h": 272.632,
    "s": 68.675,
    "l": 32.549
  },
  "oklch": {
    "l": 0.38317,
    "c": 0.17322,
    "h": 303.5
  },
  "luminance": 0.04707
}

Semantic roles & 50–950 ramp

primary
#581A8C
secondary
#7CBE44
accent
#EC3C8C
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #581A8C

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

Preview Lab → · Contrast checker → · Palette generator →

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