#581862#581862

#581862 is a dark, vivid purple. Relative luminance 0.036; OKLCH L 34.8% C 0.134 H 321.9°. Best body text is #FFFFFF at 12.20:1 contrast (WCAG AA passes).

Color values

HEX#581862
RGBrgb(88, 24, 98)
HSLhsl(292, 61%, 24%)
HSVhsv(292, 76%, 38%)
CMYKcmyk(10.2%, 75.5%, 0%, 61.6%)
CIE-LABlab(22.34, 39.80, -29.53)
CIE-LCHlch(22.34, 49.56, 323.42°)
OKLaboklab(34.79% 0.1054 -0.0825)
OKLCHoklch(34.79% 0.134 321.9)
XYZxyz(6.5555, 3.6102, 11.9044)
Luminance0.0361 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581862 #226218
analogous
#331862 #581862 #621847
triadic
#581862 #625818 #186258
tetradic
#581862 #623318 #226218 #184762
square
#581862 #623318 #226218 #184762
split-complementary
#581862 #476218 #186233
monochromatic
#160619 #2C0C31 #581862 #842493 #B030C4

Accessibility & contrast

On white

12.20
#581862 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#581862 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #581862
12.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581862#FFFFFF#000000##FFFFFF
##5818621.0012.201.7212.20
#FFFFFF12.201.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003164
Deuteranopia (green-blind)
#223860
Tritanopia (blue-blind)
#59253B
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #581862;
/* rgb */ color: rgb(88, 24, 98);
/* oklch */ color: oklch(34.8% 0.134 321.9);
Tailwind
colors: {
  custom: {
    50: '#8a5c8f',
    500: '#581862',
    950: '#000000',
  },
}
SCSS
$custom: #581862;
$custom-light: #8a5c8f;
$custom-dark: #000000;
JSON
{
  "hex": "#581862",
  "rgb": {
    "r": 88,
    "g": 24,
    "b": 98
  },
  "hsl": {
    "h": 291.892,
    "s": 60.656,
    "l": 23.922
  },
  "oklch": {
    "l": 0.34789,
    "c": 0.13382,
    "h": 321.9
  },
  "luminance": 0.0361
}

Semantic roles & 50–950 ramp

primary
#581862
secondary
#4A983E
accent
#E4445A
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040C
muted
#7D797D

Preview Lab

Preview with #581862

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

Preview Lab → · Contrast checker → · Palette generator →

#581862 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva