#5E198B#5E198B

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

Color values

HEX#5E198B
RGBrgb(94, 25, 139)
HSLhsl(276, 70%, 32%)
HSVhsv(276, 82%, 55%)
CMYKcmyk(32.4%, 82%, 0%, 45.5%)
CIE-LABlab(26.56, 49.59, -48.87)
CIE-LCHlch(26.56, 69.62, 315.42°)
OKLaboklab(38.95% 0.1056 -0.139)
OKLCHoklch(38.95% 0.175 307.2)
XYZxyz(9.6229, 4.9391, 24.8675)
Luminance0.0494 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E198B #468B19
analogous
#25198B #5E198B #8B197F
triadic
#5E198B #8B5E19 #198B5E
tetradic
#5E198B #8B2519 #468B19 #197F8B
square
#5E198B #8B2519 #468B19 #197F8B
split-complementary
#5E198B #7F8B19 #198B25
monochromatic
#180623 #3B1057 #5E198B #8122BF #A041DD

Accessibility & contrast

On white

10.56
#5E198B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5E198B
10.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E198B#FFFFFF#000000##FFFFFF
##5E198B1.0010.561.9910.56
#FFFFFF10.561.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8E
Deuteranopia (green-blind)
#003F89
Tritanopia (blue-blind)
#563753
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5e198b;
/* rgb */ color: rgb(94, 25, 139);
/* oklch */ color: oklch(38.9% 0.175 307.2);
Tailwind
colors: {
  custom: {
    50: '#915fae',
    500: '#5e198b',
    950: '#000000',
  },
}
SCSS
$custom: #5e198b;
$custom-light: #915fae;
$custom-dark: #000000;
JSON
{
  "hex": "#5e198b",
  "rgb": {
    "r": 94,
    "g": 25,
    "b": 139
  },
  "hsl": {
    "h": 276.316,
    "s": 69.512,
    "l": 32.157
  },
  "oklch": {
    "l": 0.38949,
    "c": 0.17458,
    "h": 307.2
  },
  "luminance": 0.04939
}

Semantic roles & 50–950 ramp

primary
#5E198B
secondary
#73BE42
accent
#EC3B81
background
#F9F5FA
surface
#F2EAF4
border
#CCC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5E198B

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

Preview Lab → · Contrast checker → · Palette generator →

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