#581270#581270

#581270 is a dark, vivid purple. Relative luminance 0.037; OKLCH L 35.3% C 0.154 H 315.3°. Best body text is #FFFFFF at 12.10:1 contrast (WCAG AA passes).

Color values

HEX#581270
RGBrgb(88, 18, 112)
HSLhsl(285, 72%, 25%)
HSVhsv(285, 84%, 44%)
CMYKcmyk(21.4%, 83.9%, 0%, 56.1%)
CIE-LABlab(22.57, 44.95, -38.28)
CIE-LCHlch(22.57, 59.03, 319.58°)
OKLaboklab(35.28% 0.1093 -0.1081)
OKLCHoklch(35.28% 0.154 315.3)
XYZxyz(7.1650, 3.6774, 15.6585)
Luminance0.0368 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581270 #2A7012
analogous
#291270 #581270 #701259
triadic
#581270 #705812 #127058
tetradic
#581270 #702912 #2A7012 #125970
square
#581270 #702912 #2A7012 #125970
split-complementary
#581270 #597012 #127029
monochromatic
#15041A #2F0A3B #581270 #811AA5 #AB23D9

Accessibility & contrast

On white

12.10
#581270 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#581270 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #581270
12.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581270#FFFFFF#000000##FFFFFF
##5812701.0012.101.7412.10
#FFFFFF12.101.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003272
Deuteranopia (green-blind)
#0D386E
Tritanopia (blue-blind)
#562942
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #581270;
/* rgb */ color: rgb(88, 18, 112);
/* oklch */ color: oklch(35.3% 0.154 315.3);
Tailwind
colors: {
  custom: {
    50: '#8b5a9a',
    500: '#581270',
    950: '#000000',
  },
}
SCSS
$custom: #581270;
$custom-light: #8b5a9a;
$custom-dark: #000000;
JSON
{
  "hex": "#581270",
  "rgb": {
    "r": 88,
    "g": 18,
    "b": 112
  },
  "hsl": {
    "h": 284.681,
    "s": 72.308,
    "l": 25.49
  },
  "oklch": {
    "l": 0.35279,
    "c": 0.15373,
    "h": 315.3
  },
  "luminance": 0.03677
}

Semantic roles & 50–950 ramp

primary
#581270
secondary
#53A737
accent
#EF3967
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #581270

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

Preview Lab → · Contrast checker → · Palette generator →

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