#5E198F#5E198F

#5E198F is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.3% C 0.178 H 305.8°. Best body text is #FFFFFF at 10.44:1 contrast (WCAG AA passes).

Color values

HEX#5E198F
RGBrgb(94, 25, 143)
HSLhsl(275, 70%, 33%)
HSVhsv(275, 83%, 56%)
CMYKcmyk(34.3%, 82.5%, 0%, 43.9%)
CIE-LABlab(26.90, 50.50, -50.80)
CIE-LCHlch(26.90, 71.63, 314.83°)
OKLaboklab(39.29% 0.1044 -0.1447)
OKLCHoklch(39.29% 0.178 305.8)
XYZxyz(9.9205, 5.0582, 26.4350)
Luminance0.0506 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E198F #4A8F19
analogous
#23198F #5E198F #8F1985
triadic
#5E198F #8F5E19 #198F5E
tetradic
#5E198F #8F2319 #4A8F19 #19858F
square
#5E198F #8F2319 #4A8F19 #19858F
split-complementary
#5E198F #858F19 #198F23
monochromatic
#1A0727 #3C105B #5E198F #8022C3 #9E44DE

Accessibility & contrast

On white

10.44
#5E198F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#5E198F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E198F
10.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E198F#FFFFFF#000000##FFFFFF
##5E198F1.0010.442.0110.44
#FFFFFF10.441.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E92
Deuteranopia (green-blind)
#00408D
Tritanopia (blue-blind)
#553955
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #5e198f;
/* rgb */ color: rgb(94, 25, 143);
/* oklch */ color: oklch(39.3% 0.178 305.8);
Tailwind
colors: {
  custom: {
    50: '#915fb1',
    500: '#5e198f',
    950: '#000000',
  },
}
SCSS
$custom: #5e198f;
$custom-light: #915fb1;
$custom-dark: #000000;
JSON
{
  "hex": "#5e198f",
  "rgb": {
    "r": 94,
    "g": 25,
    "b": 143
  },
  "hsl": {
    "h": 275.085,
    "s": 70.238,
    "l": 32.941
  },
  "oklch": {
    "l": 0.39291,
    "c": 0.17848,
    "h": 305.8
  },
  "luminance": 0.05058
}

Semantic roles & 50–950 ramp

primary
#5E198F
secondary
#77BF44
accent
#ED3B85
background
#F9F5FB
surface
#F2EAF6
border
#CCC6D0
text
#0D0511
muted
#7E7980

Preview Lab

Preview with #5E198F

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

Preview Lab → · Contrast checker → · Palette generator →

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