#58187F#58187F

#58187F is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.0% C 0.162 H 308.4°. Best body text is #FFFFFF at 11.34:1 contrast (WCAG AA passes).

Color values

HEX#58187F
RGBrgb(88, 24, 127)
HSLhsl(277, 68%, 30%)
HSVhsv(277, 81%, 50%)
CMYKcmyk(30.7%, 81.1%, 0%, 50.2%)
CIE-LABlab(24.51, 46.13, -44.71)
CIE-LCHlch(24.51, 64.25, 315.90°)
OKLaboklab(37.02% 0.1008 -0.127)
OKLCHoklch(37.02% 0.162 308.4)
XYZxyz(8.1811, 4.2604, 20.4659)
Luminance0.0426 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#58187F #3F7F18
analogous
#25187F #58187F #7F1872
triadic
#58187F #7F5818 #187F58
tetradic
#58187F #7F2518 #3F7F18 #18727F
square
#58187F #7F2518 #3F7F18 #18727F
split-complementary
#58187F #727F18 #187F25
monochromatic
#12051A #340E4C #58187F #7C22B2 #9C38D9

Accessibility & contrast

On white

11.34
#58187F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#58187F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #58187F
11.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##58187F#FFFFFF#000000##FFFFFF
##58187F1.0011.341.8511.34
#FFFFFF11.341.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003882
Deuteranopia (green-blind)
#003B7D
Tritanopia (blue-blind)
#52324B
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #58187f;
/* rgb */ color: rgb(88, 24, 127);
/* oklch */ color: oklch(37.0% 0.162 308.4);
Tailwind
colors: {
  custom: {
    50: '#8c5da5',
    500: '#58187f',
    950: '#000000',
  },
}
SCSS
$custom: #58187f;
$custom-light: #8c5da5;
$custom-dark: #000000;
JSON
{
  "hex": "#58187f",
  "rgb": {
    "r": 88,
    "g": 24,
    "b": 127
  },
  "hsl": {
    "h": 277.282,
    "s": 68.212,
    "l": 29.608
  },
  "oklch": {
    "l": 0.37016,
    "c": 0.16217,
    "h": 308.4
  },
  "luminance": 0.0426
}

Semantic roles & 50–950 ramp

primary
#58187F
secondary
#6BB33F
accent
#EB3D7F
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #58187F

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

Preview Lab → · Contrast checker → · Palette generator →

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