#58238B#58238B

#58238B is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.2% C 0.162 H 302.7°. Best body text is #FFFFFF at 10.35:1 contrast (WCAG AA passes).

Color values

HEX#58238B
RGBrgb(88, 35, 139)
HSLhsl(271, 60%, 34%)
HSVhsv(271, 75%, 55%)
CMYKcmyk(36.7%, 74.8%, 0%, 45.5%)
CIE-LABlab(27.13, 44.36, -47.98)
CIE-LCHlch(27.13, 65.34, 312.76°)
OKLaboklab(39.17% 0.0876 -0.1367)
OKLCHoklch(39.17% 0.162 302.7)
XYZxyz(9.2846, 5.1408, 24.9242)
Luminance0.0514 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#58238B #568B23
analogous
#24238B #58238B #8B238A
triadic
#58238B #8B5823 #238B58
tetradic
#58238B #8B2423 #568B23 #238A8B
square
#58238B #8B2423 #568B23 #238A8B
split-complementary
#58238B #8A8B23 #238B24
monochromatic
#1A0A29 #39175A #58238B #772FBC #9554D4

Accessibility & contrast

On white

10.35
#58238B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#58238B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #58238B
10.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##58238B#FFFFFF#000000##FFFFFF
##58238B1.0010.352.0310.35
#FFFFFF10.351.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.351.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #58238b;
/* rgb */ color: rgb(88, 35, 139);
/* oklch */ color: oklch(39.2% 0.162 302.7);
Tailwind
colors: {
  custom: {
    50: '#8c63ae',
    500: '#58238b',
    950: '#000000',
  },
}
SCSS
$custom: #58238b;
$custom-light: #8c63ae;
$custom-dark: #000000;
JSON
{
  "hex": "#58238b",
  "rgb": {
    "r": 88,
    "g": 35,
    "b": 139
  },
  "hsl": {
    "h": 270.577,
    "s": 59.77,
    "l": 34.118
  },
  "oklch": {
    "l": 0.39168,
    "c": 0.16239,
    "h": 302.7
  },
  "luminance": 0.05141
}

Semantic roles & 50–950 ramp

primary
#58238B
secondary
#84B852
accent
#E34592
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0D0610
muted
#7D7A7F

Preview Lab

Preview with #58238B

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

Preview Lab → · Contrast checker → · Palette generator →

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