#5E2D9F#5E2D9F

#5E2D9F is a dark, vivid violet. Relative luminance 0.068; OKLCH L 42.8% C 0.174 H 298.3°. Best body text is #FFFFFF at 8.93:1 contrast (WCAG AA passes).

Color values

HEX#5E2D9F
RGBrgb(94, 45, 159)
HSLhsl(266, 56%, 40%)
HSVhsv(266, 72%, 62%)
CMYKcmyk(40.9%, 71.7%, 0%, 37.6%)
CIE-LABlab(31.25, 45.83, -53.52)
CIE-LCHlch(31.25, 70.46, 310.58°)
OKLaboklab(42.77% 0.0824 -0.1528)
OKLCHoklch(42.77% 0.174 298.3)
XYZxyz(11.8109, 6.7595, 33.4766)
Luminance0.0676 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2D9F #6E9F2D
analogous
#2D359F #5E2D9F #972D9F
triadic
#5E2D9F #9F5E2D #2D9F5E
tetradic
#5E2D9F #9F2D35 #6E9F2D #2D9F97
square
#5E2D9F #9F2D35 #6E9F2D #2D9F97
split-complementary
#5E2D9F #9F972D #359F2D
monochromatic
#261240 #42206F #5E2D9F #7B40C9 #9C70D6

Accessibility & contrast

On white

8.93
#5E2D9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#5E2D9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2D9F
8.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2D9F#FFFFFF#000000##FFFFFF
##5E2D9F1.008.932.358.93
#FFFFFF8.931.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.931.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5e2d9f;
/* rgb */ color: rgb(94, 45, 159);
/* oklch */ color: oklch(42.8% 0.174 298.3);
Tailwind
colors: {
  custom: {
    50: '#916abc',
    500: '#5e2d9f',
    950: '#000000',
  },
}
SCSS
$custom: #5e2d9f;
$custom-light: #916abc;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2d9f",
  "rgb": {
    "r": 94,
    "g": 45,
    "b": 159
  },
  "hsl": {
    "h": 265.789,
    "s": 55.882,
    "l": 40
  },
  "oklch": {
    "l": 0.42769,
    "c": 0.17363,
    "h": 298.3
  },
  "luminance": 0.0676
}

Semantic roles & 50–950 ramp

primary
#5E2D9F
secondary
#9ABE6A
accent
#DF499E
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5E2D9F

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

Preview Lab → · Contrast checker → · Palette generator →

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