#5E2897#5E2897

#5E2897 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.5% C 0.171 H 301.4°. Best body text is #FFFFFF at 9.43:1 contrast (WCAG AA passes).

Color values

HEX#5E2897
RGBrgb(94, 40, 151)
HSLhsl(269, 58%, 37%)
HSVhsv(269, 74%, 59%)
CMYKcmyk(37.7%, 73.5%, 0%, 40.8%)
CIE-LABlab(29.74, 46.20, -51.10)
CIE-LCHlch(29.74, 68.89, 312.12°)
OKLaboklab(41.5% 0.089 -0.1457)
OKLCHoklch(41.5% 0.171 301.4)
XYZxyz(10.9594, 6.1316, 29.8783)
Luminance0.0613 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2897 #619728
analogous
#282A97 #5E2897 #952897
triadic
#5E2897 #975E28 #28975E
tetradic
#5E2897 #97282A #619728 #289795
square
#5E2897 #97282A #619728 #289795
split-complementary
#5E2897 #979528 #2A9728
monochromatic
#220E36 #401B67 #5E2897 #7C35C7 #9B64D6

Accessibility & contrast

On white

9.43
#5E2897 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#5E2897 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2897
9.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2897#FFFFFF#000000##FFFFFF
##5E28971.009.432.239.43
#FFFFFF9.431.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459A
Deuteranopia (green-blind)
#004595
Tritanopia (blue-blind)
#52435D
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5e2897;
/* rgb */ color: rgb(94, 40, 151);
/* oklch */ color: oklch(41.5% 0.171 301.4);
Tailwind
colors: {
  custom: {
    50: '#9167b6',
    500: '#5e2897',
    950: '#000000',
  },
}
SCSS
$custom: #5e2897;
$custom-light: #9167b6;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2897",
  "rgb": {
    "r": 94,
    "g": 40,
    "b": 151
  },
  "hsl": {
    "h": 269.189,
    "s": 58.115,
    "l": 37.451
  },
  "oklch": {
    "l": 0.41495,
    "c": 0.17074,
    "h": 301.4
  },
  "luminance": 0.06132
}

Semantic roles & 50–950 ramp

primary
#5E2897
secondary
#8FBC5F
accent
#E14696
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5E2897

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

Preview Lab → · Contrast checker → · Palette generator →

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