#5E29A6#5E29A6

#5E29A6 is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.9% C 0.186 H 297.1°. Best body text is #FFFFFF at 8.96:1 contrast (WCAG AA passes).

Color values

HEX#5E29A6
RGBrgb(94, 41, 166)
HSLhsl(265, 60%, 41%)
HSVhsv(265, 75%, 65%)
CMYKcmyk(43.4%, 75.3%, 0%, 34.9%)
CIE-LABlab(31.16, 49.57, -57.90)
CIE-LCHlch(31.16, 76.23, 310.57°)
OKLaboklab(42.88% 0.0847 -0.1657)
OKLCHoklch(42.88% 0.186 297.1)
XYZxyz(12.2902, 6.7185, 36.7183)
Luminance0.0672 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E29A6 #71A629
analogous
#2933A6 #5E29A6 #9C29A6
triadic
#5E29A6 #A65E29 #29A65E
tetradic
#5E29A6 #A62933 #71A629 #29A69C
square
#5E29A6 #A62933 #71A629 #29A69C
split-complementary
#5E29A6 #A69C29 #33A629
monochromatic
#261144 #421D75 #5E29A6 #7B3DCF #9C6EDB

Accessibility & contrast

On white

8.96
#5E29A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5E29A6
8.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E29A6#FFFFFF#000000##FFFFFF
##5E29A61.008.962.348.96
#FFFFFF8.961.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAA
Deuteranopia (green-blind)
#0048A4
Tritanopia (blue-blind)
#4B4A66
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5e29a6;
/* rgb */ color: rgb(94, 41, 166);
/* oklch */ color: oklch(42.9% 0.186 297.1);
Tailwind
colors: {
  custom: {
    50: '#9268c1',
    500: '#5e29a6',
    950: '#000000',
  },
}
SCSS
$custom: #5e29a6;
$custom-light: #9268c1;
$custom-dark: #000000;
JSON
{
  "hex": "#5e29a6",
  "rgb": {
    "r": 94,
    "g": 41,
    "b": 166
  },
  "hsl": {
    "h": 265.44,
    "s": 60.386,
    "l": 40.588
  },
  "oklch": {
    "l": 0.42882,
    "c": 0.1861,
    "h": 297.1
  },
  "luminance": 0.06719
}

Semantic roles & 50–950 ramp

primary
#5E29A6
secondary
#9CC269
accent
#E444A0
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5E29A6

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

Preview Lab → · Contrast checker → · Palette generator →

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