#5E2398#5E2398

#5E2398 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 41.0% C 0.178 H 301.8°. Best body text is #FFFFFF at 9.68:1 contrast (WCAG AA passes).

Color values

HEX#5E2398
RGBrgb(94, 35, 152)
HSLhsl(270, 63%, 37%)
HSVhsv(270, 77%, 60%)
CMYKcmyk(38.2%, 77%, 0%, 40.4%)
CIE-LABlab(29.03, 48.71, -52.88)
CIE-LCHlch(29.03, 71.89, 312.65°)
OKLaboklab(41.02% 0.0936 -0.1509)
OKLCHoklch(41.02% 0.178 301.8)
XYZxyz(10.8833, 5.8487, 30.2552)
Luminance0.0585 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2398 #5D9823
analogous
#232398 #5E2398 #982398
triadic
#5E2398 #985E23 #23985E
tetradic
#5E2398 #982323 #5D9823 #239898
square
#5E2398 #982323 #5D9823 #239898
split-complementary
#5E2398 #989823 #239823
monochromatic
#200C35 #3F1866 #5E2398 #7D2ECA #9B5CD9

Accessibility & contrast

On white

9.68
#5E2398 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#5E2398 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2398
9.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2398#FFFFFF#000000##FFFFFF
##5E23981.009.682.179.68
#FFFFFF9.681.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449B
Deuteranopia (green-blind)
#004496
Tritanopia (blue-blind)
#51415C
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5e2398;
/* rgb */ color: rgb(94, 35, 152);
/* oklch */ color: oklch(41.0% 0.178 301.8);
Tailwind
colors: {
  custom: {
    50: '#9164b7',
    500: '#5e2398',
    950: '#000000',
  },
}
SCSS
$custom: #5e2398;
$custom-light: #9164b7;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2398",
  "rgb": {
    "r": 94,
    "g": 35,
    "b": 152
  },
  "hsl": {
    "h": 270.256,
    "s": 62.567,
    "l": 36.667
  },
  "oklch": {
    "l": 0.41016,
    "c": 0.17755,
    "h": 301.8
  },
  "luminance": 0.05849
}

Semantic roles & 50–950 ramp

primary
#5E2398
secondary
#8BBE59
accent
#E64293
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5E2398

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

Preview Lab → · Contrast checker → · Palette generator →

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