#5D188F#5D188F

#5D188F is a dark, vivid violet. Relative luminance 0.050; OKLCH L 39.1% C 0.179 H 305.4°. Best body text is #FFFFFF at 10.54:1 contrast (WCAG AA passes).

Color values

HEX#5D188F
RGBrgb(93, 24, 143)
HSLhsl(275, 71%, 33%)
HSVhsv(275, 83%, 56%)
CMYKcmyk(35%, 83.2%, 0%, 43.9%)
CIE-LABlab(26.63, 50.68, -51.25)
CIE-LCHlch(26.63, 72.08, 314.68°)
OKLaboklab(39.07% 0.1037 -0.1461)
OKLCHoklch(39.07% 0.179 305.4)
XYZxyz(9.7976, 4.9637, 26.4232)
Luminance0.0496 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D188F #4A8F18
analogous
#22188F #5D188F #8F1885
triadic
#5D188F #8F5D18 #188F5D
tetradic
#5D188F #8F2218 #4A8F18 #18858F
square
#5D188F #8F2218 #4A8F18 #18858F
split-complementary
#5D188F #858F18 #188F22
monochromatic
#190626 #3B0F5B #5D188F #7F21C3 #9D42DF

Accessibility & contrast

On white

10.54
#5D188F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#5D188F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D188F
10.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D188F#FFFFFF#000000##FFFFFF
##5D188F1.0010.541.9910.54
#FFFFFF10.541.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D92
Deuteranopia (green-blind)
#003F8D
Tritanopia (blue-blind)
#543955
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5d188f;
/* rgb */ color: rgb(93, 24, 143);
/* oklch */ color: oklch(39.1% 0.179 305.4);
Tailwind
colors: {
  custom: {
    50: '#905fb1',
    500: '#5d188f',
    950: '#000000',
  },
}
SCSS
$custom: #5d188f;
$custom-light: #905fb1;
$custom-dark: #000000;
JSON
{
  "hex": "#5d188f",
  "rgb": {
    "r": 93,
    "g": 24,
    "b": 143
  },
  "hsl": {
    "h": 274.79,
    "s": 71.257,
    "l": 32.745
  },
  "oklch": {
    "l": 0.39073,
    "c": 0.17915,
    "h": 305.4
  },
  "luminance": 0.04964
}

Semantic roles & 50–950 ramp

primary
#5D188F
secondary
#77C043
accent
#EE3A86
background
#F9F5FB
surface
#F2EAF6
border
#CCC6D0
text
#0D0511
muted
#7E7980

Preview Lab

Preview with #5D188F

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

Preview Lab → · Contrast checker → · Palette generator →

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