#58157F#58157F

#58157F is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.8% C 0.165 H 308.7°. Best body text is #FFFFFF at 11.48:1 contrast (WCAG AA passes).

Color values

HEX#58157F
RGBrgb(88, 21, 127)
HSLhsl(278, 72%, 29%)
HSVhsv(278, 83%, 50%)
CMYKcmyk(30.7%, 83.5%, 0%, 50.2%)
CIE-LABlab(24.14, 47.22, -45.32)
CIE-LCHlch(24.14, 65.45, 316.17°)
OKLaboklab(36.75% 0.1033 -0.1288)
OKLCHoklch(36.75% 0.165 308.7)
XYZxyz(8.1226, 4.1435, 20.4464)
Luminance0.0414 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#58157F #3C7F15
analogous
#23157F #58157F #7F1571
triadic
#58157F #7F5815 #157F58
tetradic
#58157F #7F2315 #3C7F15 #15717F
square
#58157F #7F2315 #3C7F15 #15717F
split-complementary
#58157F #717F15 #157F23
monochromatic
#12041A #340C4A #58157F #7C1EB4 #9E31DD

Accessibility & contrast

On white

11.48
#58157F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#58157F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #58157F
11.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##58157F#FFFFFF#000000##FFFFFF
##58157F1.0011.481.8311.48
#FFFFFF11.481.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003782
Deuteranopia (green-blind)
#003A7D
Tritanopia (blue-blind)
#52314B
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #58157f;
/* rgb */ color: rgb(88, 21, 127);
/* oklch */ color: oklch(36.8% 0.165 308.7);
Tailwind
colors: {
  custom: {
    50: '#8c5ca5',
    500: '#58157f',
    950: '#000000',
  },
}
SCSS
$custom: #58157f;
$custom-light: #8c5ca5;
$custom-dark: #000000;
JSON
{
  "hex": "#58157f",
  "rgb": {
    "r": 88,
    "g": 21,
    "b": 127
  },
  "hsl": {
    "h": 277.925,
    "s": 71.622,
    "l": 29.02
  },
  "oklch": {
    "l": 0.36755,
    "c": 0.1651,
    "h": 308.7
  },
  "luminance": 0.04143
}

Semantic roles & 50–950 ramp

primary
#58157F
secondary
#68B43C
accent
#EE397C
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0D040F
muted
#7D797F

Preview Lab

Preview with #58157F

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

Preview Lab → · Contrast checker → · Palette generator →

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