#5E198C#5E198C

#5E198C is a dark, vivid violet. Relative luminance 0.050; OKLCH L 39.0% C 0.176 H 306.9°. Best body text is #FFFFFF at 10.53:1 contrast (WCAG AA passes).

Color values

HEX#5E198C
RGBrgb(94, 25, 140)
HSLhsl(276, 70%, 32%)
HSVhsv(276, 82%, 55%)
CMYKcmyk(32.9%, 82.1%, 0%, 45.1%)
CIE-LABlab(26.64, 49.81, -49.36)
CIE-LCHlch(26.64, 70.13, 315.26°)
OKLaboklab(39.03% 0.1053 -0.1405)
OKLCHoklch(39.03% 0.176 306.9)
XYZxyz(9.6963, 4.9685, 25.2541)
Luminance0.0497 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E198C #478C19
analogous
#25198C #5E198C #8C1981
triadic
#5E198C #8C5E19 #198C5E
tetradic
#5E198C #8C2519 #478C19 #19818C
square
#5E198C #8C2519 #478C19 #19818C
split-complementary
#5E198C #818C19 #198C25
monochromatic
#180624 #3B1058 #5E198C #8122C0 #9F42DD

Accessibility & contrast

On white

10.53
#5E198C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5E198C
10.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E198C#FFFFFF#000000##FFFFFF
##5E198C1.0010.531.9910.53
#FFFFFF10.531.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8F
Deuteranopia (green-blind)
#003F8A
Tritanopia (blue-blind)
#563853
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5e198c;
/* rgb */ color: rgb(94, 25, 140);
/* oklch */ color: oklch(39.0% 0.176 306.9);
Tailwind
colors: {
  custom: {
    50: '#915fae',
    500: '#5e198c',
    950: '#000000',
  },
}
SCSS
$custom: #5e198c;
$custom-light: #915fae;
$custom-dark: #000000;
JSON
{
  "hex": "#5e198c",
  "rgb": {
    "r": 94,
    "g": 25,
    "b": 140
  },
  "hsl": {
    "h": 276,
    "s": 69.697,
    "l": 32.353
  },
  "oklch": {
    "l": 0.39034,
    "c": 0.17556,
    "h": 306.9
  },
  "luminance": 0.04968
}

Semantic roles & 50–950 ramp

primary
#5E198C
secondary
#74BE43
accent
#ED3B82
background
#F9F5FA
surface
#F2EAF4
border
#CCC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5E198C

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

Preview Lab → · Contrast checker → · Palette generator →

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