#58158B#58158B

#58158B is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.8% C 0.177 H 304.3°. Best body text is #FFFFFF at 11.08:1 contrast (WCAG AA passes).

Color values

HEX#58158B
RGBrgb(88, 21, 139)
HSLhsl(274, 74%, 31%)
HSVhsv(274, 85%, 55%)
CMYKcmyk(36.7%, 84.9%, 0%, 45.5%)
CIE-LABlab(25.18, 49.97, -51.16)
CIE-LCHlch(25.18, 71.51, 314.33°)
OKLaboklab(37.8% 0.0997 -0.1459)
OKLCHoklch(37.8% 0.177 304.3)
XYZxyz(8.9518, 4.4751, 24.8133)
Luminance0.0447 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#58158B #488B15
analogous
#1D158B #58158B #8B1583
triadic
#58158B #8B5815 #158B58
tetradic
#58158B #8B1D15 #488B15 #15838B
square
#58158B #8B1D15 #488B15 #15838B
split-complementary
#58158B #838B15 #158B1D
monochromatic
#150521 #360D56 #58158B #7A1DC0 #9939E1

Accessibility & contrast

On white

11.08
#58158B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#58158B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #58158B
11.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##58158B#FFFFFF#000000##FFFFFF
##58158B1.0011.081.9011.08
#FFFFFF11.081.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.081.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #58158b;
/* rgb */ color: rgb(88, 21, 139);
/* oklch */ color: oklch(37.8% 0.177 304.3);
Tailwind
colors: {
  custom: {
    50: '#8d5dae',
    500: '#58158b',
    950: '#000000',
  },
}
SCSS
$custom: #58158b;
$custom-light: #8d5dae;
$custom-dark: #000000;
JSON
{
  "hex": "#58158b",
  "rgb": {
    "r": 88,
    "g": 21,
    "b": 139
  },
  "hsl": {
    "h": 274.068,
    "s": 73.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.37804,
    "c": 0.17674,
    "h": 304.3
  },
  "luminance": 0.04475
}

Semantic roles & 50–950 ramp

primary
#58158B
secondary
#75BF3D
accent
#F03787
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #58158B

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

Preview Lab → · Contrast checker → · Palette generator →

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