#5E2997#5E2997

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

Color values

HEX#5E2997
RGBrgb(94, 41, 151)
HSLhsl(269, 57%, 38%)
HSVhsv(269, 73%, 59%)
CMYKcmyk(37.7%, 72.8%, 0%, 40.8%)
CIE-LABlab(29.91, 45.72, -50.82)
CIE-LCHlch(29.91, 68.36, 311.97°)
OKLaboklab(41.62% 0.088 -0.1449)
OKLCHoklch(41.62% 0.17 301.3)
XYZxyz(10.9936, 6.1999, 29.8897)
Luminance0.0620 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2997 #629729
analogous
#292B97 #5E2997 #952997
triadic
#5E2997 #975E29 #29975E
tetradic
#5E2997 #97292B #629729 #299795
square
#5E2997 #97292B #629729 #299795
split-complementary
#5E2997 #979529 #2B9729
monochromatic
#220F37 #401C67 #5E2997 #7C36C7 #9B65D5

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5E2997#FFFFFF#000000##FFFFFF
##5E29971.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)
#00469A
Deuteranopia (green-blind)
#004695
Tritanopia (blue-blind)
#52445D
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5e2997;
/* rgb */ color: rgb(94, 41, 151);
/* oklch */ color: oklch(41.6% 0.170 301.3);
Tailwind
colors: {
  custom: {
    50: '#9168b6',
    500: '#5e2997',
    950: '#000000',
  },
}
SCSS
$custom: #5e2997;
$custom-light: #9168b6;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2997",
  "rgb": {
    "r": 94,
    "g": 41,
    "b": 151
  },
  "hsl": {
    "h": 268.909,
    "s": 57.292,
    "l": 37.647
  },
  "oklch": {
    "l": 0.41615,
    "c": 0.16953,
    "h": 301.3
  },
  "luminance": 0.062
}

Semantic roles & 50–950 ramp

primary
#5E2997
secondary
#90BB61
accent
#E14797
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5E2997

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

Preview Lab → · Contrast checker → · Palette generator →

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