#5E2E91#5E2E91

#5E2E91 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 41.8% C 0.156 H 302.3°. Best body text is #FFFFFF at 9.23:1 contrast (WCAG AA passes).

Color values

HEX#5E2E91
RGBrgb(94, 46, 145)
HSLhsl(269, 52%, 37%)
HSVhsv(269, 68%, 57%)
CMYKcmyk(35.2%, 68.3%, 0%, 43.1%)
CIE-LABlab(30.35, 41.68, -46.44)
CIE-LCHlch(30.35, 62.40, 311.91°)
OKLaboklab(41.78% 0.0835 -0.132)
OKLCHoklch(41.78% 0.156 302.3)
XYZxyz(10.7027, 6.3780, 27.4498)
Luminance0.0638 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2E91 #61912E
analogous
#2E3091 #5E2E91 #8F2E91
triadic
#5E2E91 #915E2E #2E915E
tetradic
#5E2E91 #912E30 #61912E #2E918F
square
#5E2E91 #912E30 #61912E #2E918F
split-complementary
#5E2E91 #918F2E #30912E
monochromatic
#221134 #401F63 #5E2E91 #7C3DBF #9B6AD0

Accessibility & contrast

On white

9.23
#5E2E91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#5E2E91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2E91
9.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2E91#FFFFFF#000000##FFFFFF
##5E2E911.009.232.289.23
#FFFFFF9.231.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004794
Deuteranopia (green-blind)
#00478F
Tritanopia (blue-blind)
#54445B
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5e2e91;
/* rgb */ color: rgb(94, 46, 145);
/* oklch */ color: oklch(41.8% 0.156 302.3);
Tailwind
colors: {
  custom: {
    50: '#906ab2',
    500: '#5e2e91',
    950: '#000000',
  },
}
SCSS
$custom: #5e2e91;
$custom-light: #906ab2;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2e91",
  "rgb": {
    "r": 94,
    "g": 46,
    "b": 145
  },
  "hsl": {
    "h": 269.091,
    "s": 51.832,
    "l": 37.451
  },
  "oklch": {
    "l": 0.41779,
    "c": 0.15621,
    "h": 302.3
  },
  "luminance": 0.06378
}

Semantic roles & 50–950 ramp

primary
#5E2E91
secondary
#8FB764
accent
#DB4D96
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0711
muted
#7E7A80

Preview Lab

Preview with #5E2E91

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

Preview Lab → · Contrast checker → · Palette generator →

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