#5E198D#5E198D

#5E198D is a dark, vivid violet. Relative luminance 0.050; OKLCH L 39.1% C 0.177 H 306.5°. Best body text is #FFFFFF at 10.50:1 contrast (WCAG AA passes).

Color values

HEX#5E198D
RGBrgb(94, 25, 141)
HSLhsl(276, 70%, 33%)
HSVhsv(276, 82%, 55%)
CMYKcmyk(33.3%, 82.3%, 0%, 44.7%)
CIE-LABlab(26.73, 50.04, -49.84)
CIE-LCHlch(26.73, 70.63, 315.12°)
OKLaboklab(39.12% 0.105 -0.1419)
OKLCHoklch(39.12% 0.177 306.5)
XYZxyz(9.7704, 4.9981, 25.6442)
Luminance0.0500 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E198D #488D19
analogous
#24198D #5E198D #8D1982
triadic
#5E198D #8D5E19 #198D5E
tetradic
#5E198D #8D2419 #488D19 #19828D
square
#5E198D #8D2419 #488D19 #19828D
split-complementary
#5E198D #828D19 #198D24
monochromatic
#190725 #3B1059 #5E198D #8122C1 #9F43DE

Accessibility & contrast

On white

10.50
#5E198D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#5E198D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E198D
10.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E198D#FFFFFF#000000##FFFFFF
##5E198D1.0010.502.0010.50
#FFFFFF10.501.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D90
Deuteranopia (green-blind)
#00408B
Tritanopia (blue-blind)
#563854
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5e198d;
/* rgb */ color: rgb(94, 25, 141);
/* oklch */ color: oklch(39.1% 0.177 306.5);
Tailwind
colors: {
  custom: {
    50: '#915faf',
    500: '#5e198d',
    950: '#000000',
  },
}
SCSS
$custom: #5e198d;
$custom-light: #915faf;
$custom-dark: #000000;
JSON
{
  "hex": "#5e198d",
  "rgb": {
    "r": 94,
    "g": 25,
    "b": 141
  },
  "hsl": {
    "h": 275.69,
    "s": 69.88,
    "l": 32.549
  },
  "oklch": {
    "l": 0.3912,
    "c": 0.17653,
    "h": 306.5
  },
  "luminance": 0.04998
}

Semantic roles & 50–950 ramp

primary
#5E198D
secondary
#75BF43
accent
#ED3B83
background
#F9F5FA
surface
#F2EAF5
border
#CCC6CF
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5E198D

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

Preview Lab → · Contrast checker → · Palette generator →

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