#5E2899#5E2899

#5E2899 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.7% C 0.173 H 300.8°. Best body text is #FFFFFF at 9.38:1 contrast (WCAG AA passes).

Color values

HEX#5E2899
RGBrgb(94, 40, 153)
HSLhsl(269, 59%, 38%)
HSVhsv(269, 74%, 60%)
CMYKcmyk(38.6%, 73.9%, 0%, 40%)
CIE-LABlab(29.90, 46.70, -52.06)
CIE-LCHlch(29.90, 69.94, 311.90°)
OKLaboklab(41.66% 0.0886 -0.1485)
OKLCHoklch(41.66% 0.173 300.8)
XYZxyz(11.1232, 6.1971, 30.7410)
Luminance0.0620 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2899 #639928
analogous
#282A99 #5E2899 #972899
triadic
#5E2899 #995E28 #28995E
tetradic
#5E2899 #99282A #639928 #289997
square
#5E2899 #99282A #639928 #289997
split-complementary
#5E2899 #999728 #2A9928
monochromatic
#220F38 #401B68 #5E2899 #7C35CA #9B65D7

Accessibility & contrast

On white

9.38
#5E2899 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#5E2899 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2899
9.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2899#FFFFFF#000000##FFFFFF
##5E28991.009.382.249.38
#FFFFFF9.381.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469C
Deuteranopia (green-blind)
#004697
Tritanopia (blue-blind)
#51445E
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5e2899;
/* rgb */ color: rgb(94, 40, 153);
/* oklch */ color: oklch(41.7% 0.173 300.8);
Tailwind
colors: {
  custom: {
    50: '#9167b8',
    500: '#5e2899',
    950: '#000000',
  },
}
SCSS
$custom: #5e2899;
$custom-light: #9167b8;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2899",
  "rgb": {
    "r": 94,
    "g": 40,
    "b": 153
  },
  "hsl": {
    "h": 268.673,
    "s": 58.549,
    "l": 37.843
  },
  "oklch": {
    "l": 0.4166,
    "c": 0.17294,
    "h": 300.8
  },
  "luminance": 0.06197
}

Semantic roles & 50–950 ramp

primary
#5E2899
secondary
#90BD60
accent
#E24697
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5E2899

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

Preview Lab → · Contrast checker → · Palette generator →

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