#5E2F9E#5E2F9E

#5E2F9E is a dark, vivid violet. Relative luminance 0.069; OKLCH L 42.9% C 0.170 H 298.3°. Best body text is #FFFFFF at 8.84:1 contrast (WCAG AA passes).

Color values

HEX#5E2F9E
RGBrgb(94, 47, 158)
HSLhsl(265, 54%, 40%)
HSVhsv(265, 70%, 62%)
CMYKcmyk(40.5%, 70.3%, 0%, 38%)
CIE-LABlab(31.53, 44.56, -52.45)
CIE-LCHlch(31.53, 68.82, 310.35°)
OKLaboklab(42.95% 0.0805 -0.1497)
OKLCHoklch(42.95% 0.17 298.3)
XYZxyz(11.8026, 6.8812, 33.0475)
Luminance0.0688 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2F9E #6F9E2F
analogous
#2F389E #5E2F9E #952F9E
triadic
#5E2F9E #9E5E2F #2F9E5E
tetradic
#5E2F9E #9E2F38 #6F9E2F #2F9E95
square
#5E2F9E #9E2F38 #6F9E2F #2F9E95
split-complementary
#5E2F9E #9E952F #389E2F
monochromatic
#261340 #42216F #5E2F9E #7B43C7 #9C72D5

Accessibility & contrast

On white

8.84
#5E2F9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#5E2F9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2F9E
8.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2F9E#FFFFFF#000000##FFFFFF
##5E2F9E1.008.842.388.84
#FFFFFF8.841.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA1
Deuteranopia (green-blind)
#00499C
Tritanopia (blue-blind)
#4F4A63
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5e2f9e;
/* rgb */ color: rgb(94, 47, 158);
/* oklch */ color: oklch(42.9% 0.170 298.3);
Tailwind
colors: {
  custom: {
    50: '#916bbb',
    500: '#5e2f9e',
    950: '#000000',
  },
}
SCSS
$custom: #5e2f9e;
$custom-light: #916bbb;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2f9e",
  "rgb": {
    "r": 94,
    "g": 47,
    "b": 158
  },
  "hsl": {
    "h": 265.405,
    "s": 54.146,
    "l": 40.196
  },
  "oklch": {
    "l": 0.42945,
    "c": 0.16999,
    "h": 298.3
  },
  "luminance": 0.06881
}

Semantic roles & 50–950 ramp

primary
#5E2F9E
secondary
#9BBD6C
accent
#DE4A9F
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5E2F9E

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

Preview Lab → · Contrast checker → · Palette generator →

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