#58178A#58178A

#58178A is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.9% C 0.174 H 304.5°. Best body text is #FFFFFF at 11.03:1 contrast (WCAG AA passes).

Color values

HEX#58178A
RGBrgb(88, 23, 138)
HSLhsl(274, 71%, 32%)
HSVhsv(274, 83%, 54%)
CMYKcmyk(36.2%, 83.3%, 0%, 45.9%)
CIE-LABlab(25.33, 49.06, -50.30)
CIE-LCHlch(25.33, 70.26, 314.29°)
OKLaboklab(37.88% 0.0985 -0.1434)
OKLCHoklch(37.88% 0.174 304.5)
XYZxyz(8.9173, 4.5225, 24.4430)
Luminance0.0452 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#58178A #498A17
analogous
#1E178A #58178A #8A1783
triadic
#58178A #8A5817 #178A58
tetradic
#58178A #8A1E17 #498A17 #17838A
square
#58178A #8A1E17 #498A17 #17838A
split-complementary
#58178A #838A17 #178A1E
monochromatic
#150621 #370E56 #58178A #7920BE #983DDF

Accessibility & contrast

On white

11.03
#58178A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#58178A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #58178A
11.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##58178A#FFFFFF#000000##FFFFFF
##58178A1.0011.031.9011.03
#FFFFFF11.031.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8D
Deuteranopia (green-blind)
#003C88
Tritanopia (blue-blind)
#4E3752
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #58178a;
/* rgb */ color: rgb(88, 23, 138);
/* oklch */ color: oklch(37.9% 0.174 304.5);
Tailwind
colors: {
  custom: {
    50: '#8d5ead',
    500: '#58178a',
    950: '#000000',
  },
}
SCSS
$custom: #58178a;
$custom-light: #8d5ead;
$custom-dark: #000000;
JSON
{
  "hex": "#58178a",
  "rgb": {
    "r": 88,
    "g": 23,
    "b": 138
  },
  "hsl": {
    "h": 273.913,
    "s": 71.429,
    "l": 31.569
  },
  "oklch": {
    "l": 0.37877,
    "c": 0.17402,
    "h": 304.5
  },
  "luminance": 0.04522
}

Semantic roles & 50–950 ramp

primary
#58178A
secondary
#76BE3F
accent
#EE3A88
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #58178A

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

Preview Lab → · Contrast checker → · Palette generator →

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