#5D188E#5D188E

#5D188E is a dark, vivid violet. Relative luminance 0.049; OKLCH L 39.0% C 0.178 H 305.7°. Best body text is #FFFFFF at 10.57:1 contrast (WCAG AA passes).

Color values

HEX#5D188E
RGBrgb(93, 24, 142)
HSLhsl(275, 71%, 33%)
HSVhsv(275, 83%, 56%)
CMYKcmyk(34.5%, 83.1%, 0%, 44.3%)
CIE-LABlab(26.54, 50.46, -50.77)
CIE-LCHlch(26.54, 71.58, 314.82°)
OKLaboklab(38.99% 0.104 -0.1447)
OKLCHoklch(38.99% 0.178 305.7)
XYZxyz(9.7222, 4.9335, 26.0260)
Luminance0.0493 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D188E #498E18
analogous
#22188E #5D188E #8E1884
triadic
#5D188E #8E5D18 #188E5D
tetradic
#5D188E #8E2218 #498E18 #18848E
square
#5D188E #8E2218 #498E18 #18848E
split-complementary
#5D188E #848E18 #188E22
monochromatic
#180625 #3B0F5A #5D188E #7F21C2 #9E41DF

Accessibility & contrast

On white

10.57
#5D188E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D188E
10.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D188E#FFFFFF#000000##FFFFFF
##5D188E1.0010.571.9910.57
#FFFFFF10.571.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D91
Deuteranopia (green-blind)
#003F8C
Tritanopia (blue-blind)
#543854
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5d188e;
/* rgb */ color: rgb(93, 24, 142);
/* oklch */ color: oklch(39.0% 0.178 305.7);
Tailwind
colors: {
  custom: {
    50: '#905fb0',
    500: '#5d188e',
    950: '#000000',
  },
}
SCSS
$custom: #5d188e;
$custom-light: #905fb0;
$custom-dark: #000000;
JSON
{
  "hex": "#5d188e",
  "rgb": {
    "r": 93,
    "g": 24,
    "b": 142
  },
  "hsl": {
    "h": 275.085,
    "s": 71.084,
    "l": 32.549
  },
  "oklch": {
    "l": 0.38986,
    "c": 0.17818,
    "h": 305.7
  },
  "luminance": 0.04933
}

Semantic roles & 50–950 ramp

primary
#5D188E
secondary
#76C042
accent
#EE3A85
background
#F9F5FA
surface
#F2EAF5
border
#CCC6CF
text
#0D0511
muted
#7E7980

Preview Lab

Preview with #5D188E

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

Preview Lab → · Contrast checker → · Palette generator →

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