#58287F#58287F

#58287F is a dark, vivid violet. Relative luminance 0.051; OKLCH L 38.8% C 0.142 H 306.2°. Best body text is #FFFFFF at 10.37:1 contrast (WCAG AA passes).

Color values

HEX#58287F
RGBrgb(88, 40, 127)
HSLhsl(273, 52%, 33%)
HSVhsv(273, 69%, 50%)
CMYKcmyk(30.7%, 68.5%, 0%, 50.2%)
CIE-LABlab(27.09, 38.86, -40.55)
CIE-LCHlch(27.09, 56.16, 313.79°)
OKLaboklab(38.84% 0.084 -0.1149)
OKLCHoklch(38.84% 0.142 306.2)
XYZxyz(8.6132, 5.1247, 20.6100)
Luminance0.0512 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#58287F #4F7F28
analogous
#2C287F #58287F #7F287B
triadic
#58287F #7F5828 #287F58
tetradic
#58287F #7F2C28 #4F7F28 #287B7F
square
#58287F #7F2C28 #4F7F28 #287B7F
split-complementary
#58287F #7B7F28 #287F2C
monochromatic
#180B22 #381950 #58287F #7837AE #9757CA

Accessibility & contrast

On white

10.37
#58287F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#58287F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #58287F
10.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##58287F#FFFFFF#000000##FFFFFF
##58287F1.0010.372.0310.37
#FFFFFF10.371.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E82
Deuteranopia (green-blind)
#11407D
Tritanopia (blue-blind)
#513B50
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #58287f;
/* rgb */ color: rgb(88, 40, 127);
/* oklch */ color: oklch(38.8% 0.142 306.2);
Tailwind
colors: {
  custom: {
    50: '#8b65a5',
    500: '#58287f',
    950: '#000000',
  },
}
SCSS
$custom: #58287f;
$custom-light: #8b65a5;
$custom-dark: #000000;
JSON
{
  "hex": "#58287f",
  "rgb": {
    "r": 88,
    "g": 40,
    "b": 127
  },
  "hsl": {
    "h": 273.103,
    "s": 52.096,
    "l": 32.745
  },
  "oklch": {
    "l": 0.38843,
    "c": 0.14231,
    "h": 306.2
  },
  "luminance": 0.05125
}

Semantic roles & 50–950 ramp

primary
#58287F
secondary
#7DAF54
accent
#DC4C8C
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C060F
muted
#7D7A7F

Preview Lab

Preview with #58287F

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

Preview Lab → · Contrast checker → · Palette generator →

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