#58158A#58158A

#58158A is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.7% C 0.176 H 304.7°. Best body text is #FFFFFF at 11.12:1 contrast (WCAG AA passes).

Color values

HEX#58158A
RGBrgb(88, 21, 138)
HSLhsl(274, 74%, 31%)
HSVhsv(274, 85%, 54%)
CMYKcmyk(36.2%, 84.8%, 0%, 45.9%)
CIE-LABlab(25.09, 49.74, -50.68)
CIE-LCHlch(25.09, 71.01, 314.46°)
OKLaboklab(37.71% 0.1 -0.1446)
OKLCHoklch(37.71% 0.176 304.7)
XYZxyz(8.8791, 4.4461, 24.4302)
Luminance0.0445 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#58158A #478A15
analogous
#1D158A #58158A #8A1581
triadic
#58158A #8A5815 #158A58
tetradic
#58158A #8A1D15 #478A15 #15818A
square
#58158A #8A1D15 #478A15 #15818A
split-complementary
#58158A #818A15 #158A1D
monochromatic
#140520 #360D55 #58158A #7A1DBF #9939E1

Accessibility & contrast

On white

11.12
#58158A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#58158A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #58158A
11.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##58158A#FFFFFF#000000##FFFFFF
##58158A1.0011.121.8911.12
#FFFFFF11.121.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8D
Deuteranopia (green-blind)
#003B88
Tritanopia (blue-blind)
#4E3651
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #58158a;
/* rgb */ color: rgb(88, 21, 138);
/* oklch */ color: oklch(37.7% 0.176 304.7);
Tailwind
colors: {
  custom: {
    50: '#8d5dad',
    500: '#58158a',
    950: '#000000',
  },
}
SCSS
$custom: #58158a;
$custom-light: #8d5dad;
$custom-dark: #000000;
JSON
{
  "hex": "#58158a",
  "rgb": {
    "r": 88,
    "g": 21,
    "b": 138
  },
  "hsl": {
    "h": 274.359,
    "s": 73.585,
    "l": 31.176
  },
  "oklch": {
    "l": 0.37714,
    "c": 0.17577,
    "h": 304.7
  },
  "luminance": 0.04446
}

Semantic roles & 50–950 ramp

primary
#58158A
secondary
#74BE3D
accent
#F03886
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #58158A

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

Preview Lab → · Contrast checker → · Palette generator →

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