#5D188C#5D188C

#5D188C is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.8% C 0.176 H 306.4°. Best body text is #FFFFFF at 10.63:1 contrast (WCAG AA passes).

Color values

HEX#5D188C
RGBrgb(93, 24, 140)
HSLhsl(276, 71%, 32%)
HSVhsv(276, 83%, 55%)
CMYKcmyk(33.6%, 82.9%, 0%, 45.1%)
CIE-LABlab(26.37, 50.00, -49.81)
CIE-LCHlch(26.37, 70.57, 315.11°)
OKLaboklab(38.81% 0.1046 -0.1418)
OKLCHoklch(38.81% 0.176 306.4)
XYZxyz(9.5734, 4.8740, 25.2423)
Luminance0.0487 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D188C #478C18
analogous
#23188C #5D188C #8C1881
triadic
#5D188C #8C5D18 #188C5D
tetradic
#5D188C #8C2318 #478C18 #18818C
square
#5D188C #8C2318 #478C18 #18818C
split-complementary
#5D188C #818C18 #188C23
monochromatic
#180624 #3A0F58 #5D188C #8021C0 #9E40DE

Accessibility & contrast

On white

10.63
#5D188C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D188C
10.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D188C#FFFFFF#000000##FFFFFF
##5D188C1.0010.631.9710.63
#FFFFFF10.631.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8F
Deuteranopia (green-blind)
#003F8A
Tritanopia (blue-blind)
#553753
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5d188c;
/* rgb */ color: rgb(93, 24, 140);
/* oklch */ color: oklch(38.8% 0.176 306.4);
Tailwind
colors: {
  custom: {
    50: '#905fae',
    500: '#5d188c',
    950: '#000000',
  },
}
SCSS
$custom: #5d188c;
$custom-light: #905fae;
$custom-dark: #000000;
JSON
{
  "hex": "#5d188c",
  "rgb": {
    "r": 93,
    "g": 24,
    "b": 140
  },
  "hsl": {
    "h": 275.69,
    "s": 70.732,
    "l": 32.157
  },
  "oklch": {
    "l": 0.38813,
    "c": 0.17623,
    "h": 306.4
  },
  "luminance": 0.04874
}

Semantic roles & 50–950 ramp

primary
#5D188C
secondary
#74BF41
accent
#ED3A83
background
#F9F5FA
surface
#F2EAF4
border
#CCC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5D188C

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

Preview Lab → · Contrast checker → · Palette generator →

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