#5D188B#5D188B

#5D188B is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.7% C 0.175 H 306.8°. Best body text is #FFFFFF at 10.67:1 contrast (WCAG AA passes).

Color values

HEX#5D188B
RGBrgb(93, 24, 139)
HSLhsl(276, 71%, 32%)
HSVhsv(276, 83%, 55%)
CMYKcmyk(33.1%, 82.7%, 0%, 45.5%)
CIE-LABlab(26.29, 49.77, -49.32)
CIE-LCHlch(26.29, 70.07, 315.26°)
OKLaboklab(38.73% 0.1049 -0.1404)
OKLCHoklch(38.73% 0.175 306.8)
XYZxyz(9.5000, 4.8446, 24.8557)
Luminance0.0485 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D188B #468B18
analogous
#24188B #5D188B #8B1880
triadic
#5D188B #8B5D18 #188B5D
tetradic
#5D188B #8B2418 #468B18 #18808B
square
#5D188B #8B2418 #468B18 #18808B
split-complementary
#5D188B #808B18 #188B24
monochromatic
#170623 #3A0F57 #5D188B #8021BF #9F3FDE

Accessibility & contrast

On white

10.67
#5D188B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#5D188B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D188B
10.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D188B#FFFFFF#000000##FFFFFF
##5D188B1.0010.671.9710.67
#FFFFFF10.671.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8E
Deuteranopia (green-blind)
#003F89
Tritanopia (blue-blind)
#553752
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5d188b;
/* rgb */ color: rgb(93, 24, 139);
/* oklch */ color: oklch(38.7% 0.175 306.8);
Tailwind
colors: {
  custom: {
    50: '#905fae',
    500: '#5d188b',
    950: '#000000',
  },
}
SCSS
$custom: #5d188b;
$custom-light: #905fae;
$custom-dark: #000000;
JSON
{
  "hex": "#5d188b",
  "rgb": {
    "r": 93,
    "g": 24,
    "b": 139
  },
  "hsl": {
    "h": 276,
    "s": 70.552,
    "l": 31.961
  },
  "oklch": {
    "l": 0.38727,
    "c": 0.17526,
    "h": 306.8
  },
  "luminance": 0.04845
}

Semantic roles & 50–950 ramp

primary
#5D188B
secondary
#73BE40
accent
#ED3A82
background
#F9F5FA
surface
#F2EAF4
border
#CCC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5D188B

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

Preview Lab → · Contrast checker → · Palette generator →

#5D188B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva