#58228B#58228B

#58228B is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.1% C 0.164 H 302.8°. Best body text is #FFFFFF at 10.41:1 contrast (WCAG AA passes).

Color values

HEX#58228B
RGBrgb(88, 34, 139)
HSLhsl(271, 61%, 34%)
HSVhsv(271, 76%, 55%)
CMYKcmyk(36.7%, 75.5%, 0%, 45.5%)
CIE-LABlab(26.97, 44.82, -48.24)
CIE-LCHlch(26.97, 65.85, 312.89°)
OKLaboklab(39.05% 0.0886 -0.1375)
OKLCHoklch(39.05% 0.164 302.8)
XYZxyz(9.2556, 5.0828, 24.9146)
Luminance0.0508 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#58228B #558B22
analogous
#23228B #58228B #8B228A
triadic
#58228B #8B5822 #228B58
tetradic
#58228B #8B2322 #558B22 #228A8B
square
#58228B #8B2322 #558B22 #228A8B
split-complementary
#58228B #8A8B22 #228B23
monochromatic
#1A0A29 #39165A #58228B #772EBC #9653D5

Accessibility & contrast

On white

10.41
#58228B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#58228B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #58228B
10.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##58228B#FFFFFF#000000##FFFFFF
##58228B1.0010.412.0210.41
#FFFFFF10.411.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8E
Deuteranopia (green-blind)
#003F89
Tritanopia (blue-blind)
#4D3C55
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #58228b;
/* rgb */ color: rgb(88, 34, 139);
/* oklch */ color: oklch(39.1% 0.164 302.8);
Tailwind
colors: {
  custom: {
    50: '#8c63ae',
    500: '#58228b',
    950: '#000000',
  },
}
SCSS
$custom: #58228b;
$custom-light: #8c63ae;
$custom-dark: #000000;
JSON
{
  "hex": "#58228b",
  "rgb": {
    "r": 88,
    "g": 34,
    "b": 139
  },
  "hsl": {
    "h": 270.857,
    "s": 60.694,
    "l": 33.922
  },
  "oklch": {
    "l": 0.39053,
    "c": 0.16358,
    "h": 302.8
  },
  "luminance": 0.05083
}

Semantic roles & 50–950 ramp

primary
#58228B
secondary
#83B850
accent
#E44492
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0D0510
muted
#7D7A7F

Preview Lab

Preview with #58228B

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

Preview Lab → · Contrast checker → · Palette generator →

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