#58157A#58157A

#58157A is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.3% C 0.160 H 310.7°. Best body text is #FFFFFF at 11.65:1 contrast (WCAG AA passes).

Color values

HEX#58157A
RGBrgb(88, 21, 122)
HSLhsl(280, 71%, 28%)
HSVhsv(280, 83%, 48%)
CMYKcmyk(27.9%, 82.8%, 0%, 52.2%)
CIE-LABlab(23.73, 46.09, -42.82)
CIE-LCHlch(23.73, 62.92, 317.11°)
OKLaboklab(36.34% 0.1046 -0.1215)
OKLCHoklch(36.34% 0.16 310.7)
XYZxyz(7.8048, 4.0164, 18.7727)
Luminance0.0402 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#58157A #377A15
analogous
#25157A #58157A #7A1569
triadic
#58157A #7A5815 #157A58
tetradic
#58157A #7A2515 #377A15 #15697A
square
#58157A #7A2515 #377A15 #15697A
split-complementary
#58157A #697A15 #157A25
monochromatic
#13041A #320C46 #58157A #7E1EAE #A12EDB

Accessibility & contrast

On white

11.65
#58157A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#58157A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #58157A
11.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##58157A#FFFFFF#000000##FFFFFF
##58157A1.0011.651.8011.65
#FFFFFF11.651.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367D
Deuteranopia (green-blind)
#003978
Tritanopia (blue-blind)
#532F48
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #58157a;
/* rgb */ color: rgb(88, 21, 122);
/* oklch */ color: oklch(36.3% 0.160 310.7);
Tailwind
colors: {
  custom: {
    50: '#8b5ca1',
    500: '#58157a',
    950: '#000000',
  },
}
SCSS
$custom: #58157a;
$custom-light: #8b5ca1;
$custom-dark: #000000;
JSON
{
  "hex": "#58157a",
  "rgb": {
    "r": 88,
    "g": 21,
    "b": 122
  },
  "hsl": {
    "h": 279.802,
    "s": 70.629,
    "l": 28.039
  },
  "oklch": {
    "l": 0.36336,
    "c": 0.16028,
    "h": 310.7
  },
  "luminance": 0.04016
}

Semantic roles & 50–950 ramp

primary
#58157A
secondary
#62AF3B
accent
#ED3A77
background
#F8F5FA
surface
#F0E9F3
border
#CBC5CD
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #58157A

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

Preview Lab → · Contrast checker → · Palette generator →

#58157A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva