#58178C#58178C

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

Color values

HEX#58178C
RGBrgb(88, 23, 140)
HSLhsl(273, 72%, 32%)
HSVhsv(273, 84%, 55%)
CMYKcmyk(37.1%, 83.6%, 0%, 45.1%)
CIE-LABlab(25.51, 49.53, -51.25)
CIE-LCHlch(25.51, 71.27, 314.02°)
OKLaboklab(38.05% 0.0979 -0.1462)
OKLCHoklch(38.05% 0.176 303.8)
XYZxyz(9.0634, 4.5810, 25.2126)
Luminance0.0458 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#58178C #4B8C17
analogous
#1D178C #58178C #8C1786
triadic
#58178C #8C5817 #178C58
tetradic
#58178C #8C1D17 #4B8C17 #17868C
square
#58178C #8C1D17 #4B8C17 #17868C
split-complementary
#58178C #868C17 #178C1D
monochromatic
#160623 #370E57 #58178C #7920C1 #983EDF

Accessibility & contrast

On white

10.96
#58178C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #58178C
10.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##58178C#FFFFFF#000000##FFFFFF
##58178C1.0010.961.9210.96
#FFFFFF10.961.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8F
Deuteranopia (green-blind)
#003C8A
Tritanopia (blue-blind)
#4D3853
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #58178c;
/* rgb */ color: rgb(88, 23, 140);
/* oklch */ color: oklch(38.1% 0.176 303.8);
Tailwind
colors: {
  custom: {
    50: '#8d5eaf',
    500: '#58178c',
    950: '#000000',
  },
}
SCSS
$custom: #58178c;
$custom-light: #8d5eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#58178c",
  "rgb": {
    "r": 88,
    "g": 23,
    "b": 140
  },
  "hsl": {
    "h": 273.333,
    "s": 71.779,
    "l": 31.961
  },
  "oklch": {
    "l": 0.38054,
    "c": 0.176,
    "h": 303.8
  },
  "luminance": 0.04581
}

Semantic roles & 50–950 ramp

primary
#58178C
secondary
#78BF3F
accent
#EF398A
background
#F9F5FA
surface
#F1E9F5
border
#CBC5CF
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #58178C

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

Preview Lab → · Contrast checker → · Palette generator →

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