#58178F#58178F

#58178F is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.3% C 0.179 H 302.8°. Best body text is #FFFFFF at 10.86:1 contrast (WCAG AA passes).

Color values

HEX#58178F
RGBrgb(88, 23, 143)
HSLhsl(273, 72%, 33%)
HSVhsv(273, 84%, 56%)
CMYKcmyk(38.5%, 83.9%, 0%, 43.9%)
CIE-LABlab(25.78, 50.23, -52.68)
CIE-LCHlch(25.78, 72.79, 313.64°)
OKLaboklab(38.32% 0.097 -0.1504)
OKLCHoklch(38.32% 0.179 302.8)
XYZxyz(9.2876, 4.6707, 26.3935)
Luminance0.0467 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#58178F #4E8F17
analogous
#1C178F #58178F #8F178A
triadic
#58178F #8F5817 #178F58
tetradic
#58178F #8F1C17 #4E8F17 #178A8F
square
#58178F #8F1C17 #4E8F17 #178A8F
split-complementary
#58178F #8A8F17 #178F1C
monochromatic
#170626 #380F5A #58178F #781FC4 #9740E0

Accessibility & contrast

On white

10.86
#58178F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#58178F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #58178F
10.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##58178F#FFFFFF#000000##FFFFFF
##58178F1.0010.861.9310.86
#FFFFFF10.861.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C92
Deuteranopia (green-blind)
#003D8D
Tritanopia (blue-blind)
#4C3955
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #58178f;
/* rgb */ color: rgb(88, 23, 143);
/* oklch */ color: oklch(38.3% 0.179 302.8);
Tailwind
colors: {
  custom: {
    50: '#8d5eb1',
    500: '#58178f',
    950: '#000000',
  },
}
SCSS
$custom: #58178f;
$custom-light: #8d5eb1;
$custom-dark: #000000;
JSON
{
  "hex": "#58178f",
  "rgb": {
    "r": 88,
    "g": 23,
    "b": 143
  },
  "hsl": {
    "h": 272.5,
    "s": 72.289,
    "l": 32.549
  },
  "oklch": {
    "l": 0.38324,
    "c": 0.17897,
    "h": 302.8
  },
  "luminance": 0.04671
}

Semantic roles & 50–950 ramp

primary
#58178F
secondary
#7CC141
accent
#EF398C
background
#F9F5FB
surface
#F1E9F6
border
#CBC5D0
text
#0D0511
muted
#7E7980

Preview Lab

Preview with #58178F

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

Preview Lab → · Contrast checker → · Palette generator →

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