#5E2D9D#5E2D9D

#5E2D9D is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.6% C 0.171 H 298.9°. Best body text is #FFFFFF at 8.98:1 contrast (WCAG AA passes).

Color values

HEX#5E2D9D
RGBrgb(94, 45, 157)
HSLhsl(266, 55%, 40%)
HSVhsv(266, 71%, 62%)
CMYKcmyk(40.1%, 71.3%, 0%, 38.4%)
CIE-LABlab(31.09, 45.31, -52.56)
CIE-LCHlch(31.09, 69.40, 310.76°)
OKLaboklab(42.6% 0.0828 -0.15)
OKLCHoklch(42.6% 0.171 298.9)
XYZxyz(11.6387, 6.6906, 32.5700)
Luminance0.0669 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2D9D #6C9D2D
analogous
#2D349D #5E2D9D #962D9D
triadic
#5E2D9D #9D5E2D #2D9D5E
tetradic
#5E2D9D #9D2D34 #6C9D2D #2D9D96
square
#5E2D9D #9D2D34 #6C9D2D #2D9D96
split-complementary
#5E2D9D #9D962D #349D2D
monochromatic
#25123E #421F6D #5E2D9D #7B3FC8 #9C6FD6

Accessibility & contrast

On white

8.98
#5E2D9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#5E2D9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2D9D
8.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2D9D#FFFFFF#000000##FFFFFF
##5E2D9D1.008.982.348.98
#FFFFFF8.981.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A0
Deuteranopia (green-blind)
#00489B
Tritanopia (blue-blind)
#4F4862
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5e2d9d;
/* rgb */ color: rgb(94, 45, 157);
/* oklch */ color: oklch(42.6% 0.171 298.9);
Tailwind
colors: {
  custom: {
    50: '#916abb',
    500: '#5e2d9d',
    950: '#000000',
  },
}
SCSS
$custom: #5e2d9d;
$custom-light: #916abb;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2d9d",
  "rgb": {
    "r": 94,
    "g": 45,
    "b": 157
  },
  "hsl": {
    "h": 266.25,
    "s": 55.446,
    "l": 39.608
  },
  "oklch": {
    "l": 0.42604,
    "c": 0.17135,
    "h": 298.9
  },
  "luminance": 0.06691
}

Semantic roles & 50–950 ramp

primary
#5E2D9D
secondary
#98BD69
accent
#DF499D
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5E2D9D

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

Preview Lab → · Contrast checker → · Palette generator →

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