#5E2B97#5E2B97

#5E2B97 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.9% C 0.167 H 301.0°. Best body text is #FFFFFF at 9.26:1 contrast (WCAG AA passes).

Color values

HEX#5E2B97
RGBrgb(94, 43, 151)
HSLhsl(268, 56%, 38%)
HSVhsv(268, 72%, 59%)
CMYKcmyk(37.7%, 71.5%, 0%, 40.8%)
CIE-LABlab(30.26, 44.75, -50.26)
CIE-LCHlch(30.26, 67.29, 311.68°)
OKLaboklab(41.86% 0.0859 -0.1433)
OKLCHoklch(41.86% 0.167 301)
XYZxyz(11.0645, 6.3417, 29.9133)
Luminance0.0634 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2B97 #64972B
analogous
#2B2E97 #5E2B97 #942B97
triadic
#5E2B97 #975E2B #2B975E
tetradic
#5E2B97 #972B2E #64972B #2B9794
square
#5E2B97 #972B2E #64972B #2B9794
split-complementary
#5E2B97 #97942B #2E972B
monochromatic
#231038 #401D67 #5E2B97 #7C39C7 #9B68D4

Accessibility & contrast

On white

9.26
#5E2B97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#5E2B97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2B97
9.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2B97#FFFFFF#000000##FFFFFF
##5E2B971.009.262.279.26
#FFFFFF9.261.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479A
Deuteranopia (green-blind)
#004795
Tritanopia (blue-blind)
#52455E
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5e2b97;
/* rgb */ color: rgb(94, 43, 151);
/* oklch */ color: oklch(41.9% 0.167 301.0);
Tailwind
colors: {
  custom: {
    50: '#9169b6',
    500: '#5e2b97',
    950: '#000000',
  },
}
SCSS
$custom: #5e2b97;
$custom-light: #9169b6;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2b97",
  "rgb": {
    "r": 94,
    "g": 43,
    "b": 151
  },
  "hsl": {
    "h": 268.333,
    "s": 55.67,
    "l": 38.039
  },
  "oklch": {
    "l": 0.41862,
    "c": 0.16704,
    "h": 301
  },
  "luminance": 0.06342
}

Semantic roles & 50–950 ramp

primary
#5E2B97
secondary
#91BB63
accent
#DF4998
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5E2B97

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

Preview Lab → · Contrast checker → · Palette generator →

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