#5E2E9F#5E2E9F

#5E2E9F is a dark, vivid violet. Relative luminance 0.068; OKLCH L 42.9% C 0.172 H 298.2°. Best body text is #FFFFFF at 8.87:1 contrast (WCAG AA passes).

Color values

HEX#5E2E9F
RGBrgb(94, 46, 159)
HSLhsl(265, 55%, 40%)
HSVhsv(265, 71%, 62%)
CMYKcmyk(40.9%, 71.1%, 0%, 37.6%)
CIE-LABlab(31.43, 45.33, -53.22)
CIE-LCHlch(31.43, 69.91, 310.42°)
OKLaboklab(42.9% 0.0814 -0.152)
OKLCHoklch(42.9% 0.172 298.2)
XYZxyz(11.8495, 6.8367, 33.4895)
Luminance0.0684 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2E9F #6F9F2E
analogous
#2E369F #5E2E9F #972E9F
triadic
#5E2E9F #9F5E2E #2E9F5E
tetradic
#5E2E9F #9F2E36 #6F9F2E #2E9F97
square
#5E2E9F #9F2E36 #6F9F2E #2E9F97
split-complementary
#5E2E9F #9F972E #369F2E
monochromatic
#261340 #422070 #5E2E9F #7B42C8 #9C71D6

Accessibility & contrast

On white

8.87
#5E2E9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#5E2E9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2E9F
8.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2E9F#FFFFFF#000000##FFFFFF
##5E2E9F1.008.872.378.87
#FFFFFF8.871.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA2
Deuteranopia (green-blind)
#00499D
Tritanopia (blue-blind)
#4E4A63
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5e2e9f;
/* rgb */ color: rgb(94, 46, 159);
/* oklch */ color: oklch(42.9% 0.172 298.2);
Tailwind
colors: {
  custom: {
    50: '#916bbc',
    500: '#5e2e9f',
    950: '#000000',
  },
}
SCSS
$custom: #5e2e9f;
$custom-light: #916bbc;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2e9f",
  "rgb": {
    "r": 94,
    "g": 46,
    "b": 159
  },
  "hsl": {
    "h": 265.487,
    "s": 55.122,
    "l": 40.196
  },
  "oklch": {
    "l": 0.42896,
    "c": 0.1724,
    "h": 298.2
  },
  "luminance": 0.06837
}

Semantic roles & 50–950 ramp

primary
#5E2E9F
secondary
#9BBE6B
accent
#DE499F
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5E2E9F

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

Preview Lab → · Contrast checker → · Palette generator →

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