#5E188A#5E188A

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

Color values

HEX#5E188A
RGBrgb(94, 24, 138)
HSLhsl(277, 70%, 32%)
HSVhsv(277, 83%, 54%)
CMYKcmyk(31.9%, 82.6%, 0%, 45.9%)
CIE-LABlab(26.36, 49.71, -48.58)
CIE-LCHlch(26.36, 69.51, 315.66°)
OKLaboklab(38.78% 0.1066 -0.1382)
OKLCHoklch(38.78% 0.175 307.7)
XYZxyz(9.5292, 4.8681, 24.4775)
Luminance0.0487 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E188A #448A18
analogous
#25188A #5E188A #8A187D
triadic
#5E188A #8A5E18 #188A5E
tetradic
#5E188A #8A2518 #448A18 #187D8A
square
#5E188A #8A2518 #448A18 #187D8A
split-complementary
#5E188A #7D8A18 #188A25
monochromatic
#170622 #3A0F56 #5E188A #8221BE #A03FDE

Accessibility & contrast

On white

10.64
#5E188A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5E188A
10.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E188A#FFFFFF#000000##FFFFFF
##5E188A1.0010.641.9710.64
#FFFFFF10.641.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8D
Deuteranopia (green-blind)
#003F88
Tritanopia (blue-blind)
#573652
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5e188a;
/* rgb */ color: rgb(94, 24, 138);
/* oklch */ color: oklch(38.8% 0.175 307.7);
Tailwind
colors: {
  custom: {
    50: '#915fad',
    500: '#5e188a',
    950: '#000000',
  },
}
SCSS
$custom: #5e188a;
$custom-light: #915fad;
$custom-dark: #000000;
JSON
{
  "hex": "#5e188a",
  "rgb": {
    "r": 94,
    "g": 24,
    "b": 138
  },
  "hsl": {
    "h": 276.842,
    "s": 70.37,
    "l": 31.765
  },
  "oklch": {
    "l": 0.3878,
    "c": 0.17455,
    "h": 307.7
  },
  "luminance": 0.04868
}

Semantic roles & 50–950 ramp

primary
#5E188A
secondary
#71BD40
accent
#ED3B80
background
#F9F5FA
surface
#F2EAF4
border
#CCC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5E188A

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

Preview Lab → · Contrast checker → · Palette generator →

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