#58127E#58127E

#58127E is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.4% C 0.167 H 309.4°. Best body text is #FFFFFF at 11.65:1 contrast (WCAG AA passes).

Color values

HEX#58127E
RGBrgb(88, 18, 126)
HSLhsl(279, 75%, 28%)
HSVhsv(279, 86%, 49%)
CMYKcmyk(30.2%, 85.7%, 0%, 50.6%)
CIE-LABlab(23.72, 47.98, -45.38)
CIE-LCHlch(23.72, 66.04, 316.60°)
OKLaboklab(36.43% 0.1058 -0.129)
OKLCHoklch(36.43% 0.167 309.4)
XYZxyz(8.0059, 4.0138, 20.0876)
Luminance0.0401 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#58127E #387E12
analogous
#22127E #58127E #7E126E
triadic
#58127E #7E5812 #127E58
tetradic
#58127E #7E2212 #387E12 #126E7E
square
#58127E #7E2212 #387E12 #126E7E
split-complementary
#58127E #6E7E12 #127E22
monochromatic
#13041B #330A48 #58127E #7D1AB4 #A02AE1

Accessibility & contrast

On white

11.65
#58127E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#58127E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #58127E
11.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##58127E#FFFFFF#000000##FFFFFF
##58127E1.0011.651.8011.65
#FFFFFF11.651.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003681
Deuteranopia (green-blind)
#00397C
Tritanopia (blue-blind)
#522F4A
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #58127e;
/* rgb */ color: rgb(88, 18, 126);
/* oklch */ color: oklch(36.4% 0.167 309.4);
Tailwind
colors: {
  custom: {
    50: '#8c5ba4',
    500: '#58127e',
    950: '#000000',
  },
}
SCSS
$custom: #58127e;
$custom-light: #8c5ba4;
$custom-dark: #000000;
JSON
{
  "hex": "#58127e",
  "rgb": {
    "r": 88,
    "g": 18,
    "b": 126
  },
  "hsl": {
    "h": 278.889,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.36434,
    "c": 0.16683,
    "h": 309.4
  },
  "luminance": 0.04014
}

Semantic roles & 50–950 ramp

primary
#58127E
secondary
#64B438
accent
#F23678
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0D040F
muted
#7D797F

Preview Lab

Preview with #58127E

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

Preview Lab → · Contrast checker → · Palette generator →

#58127E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva