#58178B#58178B

#58178B is a dark, vivid violet. Relative luminance 0.046; OKLCH L 38.0% C 0.175 H 304.1°. Best body text is #FFFFFF at 10.99:1 contrast (WCAG AA passes).

Color values

HEX#58178B
RGBrgb(88, 23, 139)
HSLhsl(274, 72%, 32%)
HSVhsv(274, 83%, 55%)
CMYKcmyk(36.7%, 83.5%, 0%, 45.5%)
CIE-LABlab(25.42, 49.29, -50.77)
CIE-LCHlch(25.42, 70.76, 314.15°)
OKLaboklab(37.96% 0.0982 -0.1448)
OKLCHoklch(37.96% 0.175 304.1)
XYZxyz(8.9900, 4.5516, 24.8260)
Luminance0.0455 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#58178B #4A8B17
analogous
#1E178B #58178B #8B1784
triadic
#58178B #8B5817 #178B58
tetradic
#58178B #8B1E17 #4A8B17 #17848B
square
#58178B #8B1E17 #4A8B17 #17848B
split-complementary
#58178B #848B17 #178B1E
monochromatic
#160622 #370E56 #58178B #7920C0 #983DDF

Accessibility & contrast

On white

10.99
#58178B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#58178B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #58178B
10.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##58178B#FFFFFF#000000##FFFFFF
##58178B1.0010.991.9110.99
#FFFFFF10.991.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.991.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #58178b;
/* rgb */ color: rgb(88, 23, 139);
/* oklch */ color: oklch(38.0% 0.175 304.1);
Tailwind
colors: {
  custom: {
    50: '#8d5eae',
    500: '#58178b',
    950: '#000000',
  },
}
SCSS
$custom: #58178b;
$custom-light: #8d5eae;
$custom-dark: #000000;
JSON
{
  "hex": "#58178b",
  "rgb": {
    "r": 88,
    "g": 23,
    "b": 139
  },
  "hsl": {
    "h": 273.621,
    "s": 71.605,
    "l": 31.765
  },
  "oklch": {
    "l": 0.37965,
    "c": 0.17501,
    "h": 304.1
  },
  "luminance": 0.04552
}

Semantic roles & 50–950 ramp

primary
#58178B
secondary
#77BF3F
accent
#EE3989
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #58178B

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

Preview Lab → · Contrast checker → · Palette generator →

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