#58178D#58178D

#58178D is a dark, vivid violet. Relative luminance 0.046; OKLCH L 38.1% C 0.177 H 303.5°. Best body text is #FFFFFF at 10.92:1 contrast (WCAG AA passes).

Color values

HEX#58178D
RGBrgb(88, 23, 141)
HSLhsl(273, 72%, 32%)
HSVhsv(273, 84%, 55%)
CMYKcmyk(37.6%, 83.7%, 0%, 44.7%)
CIE-LABlab(25.60, 49.76, -51.73)
CIE-LCHlch(25.60, 71.78, 313.89°)
OKLaboklab(38.14% 0.0976 -0.1476)
OKLCHoklch(38.14% 0.177 303.5)
XYZxyz(9.1375, 4.6106, 25.6027)
Luminance0.0461 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#58178D #4C8D17
analogous
#1D178D #58178D #8D1787
triadic
#58178D #8D5817 #178D58
tetradic
#58178D #8D1D17 #4C8D17 #17878D
square
#58178D #8D1D17 #4C8D17 #17878D
split-complementary
#58178D #878D17 #178D1D
monochromatic
#160624 #370E58 #58178D #7920C2 #973FE0

Accessibility & contrast

On white

10.92
#58178D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#58178D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #58178D
10.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##58178D#FFFFFF#000000##FFFFFF
##58178D1.0010.921.9210.92
#FFFFFF10.921.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B90
Deuteranopia (green-blind)
#003C8B
Tritanopia (blue-blind)
#4D3853
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #58178d;
/* rgb */ color: rgb(88, 23, 141);
/* oklch */ color: oklch(38.1% 0.177 303.5);
Tailwind
colors: {
  custom: {
    50: '#8d5eaf',
    500: '#58178d',
    950: '#000000',
  },
}
SCSS
$custom: #58178d;
$custom-light: #8d5eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#58178d",
  "rgb": {
    "r": 88,
    "g": 23,
    "b": 141
  },
  "hsl": {
    "h": 273.051,
    "s": 71.951,
    "l": 32.157
  },
  "oklch": {
    "l": 0.38144,
    "c": 0.17699,
    "h": 303.5
  },
  "luminance": 0.04611
}

Semantic roles & 50–950 ramp

primary
#58178D
secondary
#79C040
accent
#EF398B
background
#F9F5FA
surface
#F1E9F5
border
#CBC5CF
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #58178D

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

Preview Lab → · Contrast checker → · Palette generator →

#58178D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva