#5E2397#5E2397

#5E2397 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.9% C 0.176 H 302.1°. Best body text is #FFFFFF at 9.71:1 contrast (WCAG AA passes).

Color values

HEX#5E2397
RGBrgb(94, 35, 151)
HSLhsl(271, 62%, 36%)
HSVhsv(271, 77%, 59%)
CMYKcmyk(37.7%, 76.8%, 0%, 40.8%)
CIE-LABlab(28.94, 48.47, -52.40)
CIE-LCHlch(28.94, 71.38, 312.77°)
OKLaboklab(40.93% 0.0938 -0.1495)
OKLCHoklch(40.93% 0.177 302.1)
XYZxyz(10.8017, 5.8161, 29.8257)
Luminance0.0582 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2397 #5C9723
analogous
#242397 #5E2397 #972396
triadic
#5E2397 #975E23 #23975E
tetradic
#5E2397 #972423 #5C9723 #239697
square
#5E2397 #972423 #5C9723 #239697
split-complementary
#5E2397 #969723 #239724
monochromatic
#200C34 #3F1765 #5E2397 #7D2FC9 #9B5BD9

Accessibility & contrast

On white

9.71
#5E2397 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#5E2397 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2397
9.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2397#FFFFFF#000000##FFFFFF
##5E23971.009.712.169.71
#FFFFFF9.711.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439A
Deuteranopia (green-blind)
#004495
Tritanopia (blue-blind)
#52415C
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5e2397;
/* rgb */ color: rgb(94, 35, 151);
/* oklch */ color: oklch(40.9% 0.176 302.1);
Tailwind
colors: {
  custom: {
    50: '#9164b6',
    500: '#5e2397',
    950: '#000000',
  },
}
SCSS
$custom: #5e2397;
$custom-light: #9164b6;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2397",
  "rgb": {
    "r": 94,
    "g": 35,
    "b": 151
  },
  "hsl": {
    "h": 270.517,
    "s": 62.366,
    "l": 36.471
  },
  "oklch": {
    "l": 0.40931,
    "c": 0.1765,
    "h": 302.1
  },
  "luminance": 0.05816
}

Semantic roles & 50–950 ramp

primary
#5E2397
secondary
#8ABE58
accent
#E54292
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5E2397

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

Preview Lab → · Contrast checker → · Palette generator →

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