#5E299E#5E299E

#5E299E is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.2% C 0.177 H 299.2°. Best body text is #FFFFFF at 9.18:1 contrast (WCAG AA passes).

Color values

HEX#5E299E
RGBrgb(94, 41, 158)
HSLhsl(267, 59%, 39%)
HSVhsv(267, 74%, 62%)
CMYKcmyk(40.5%, 74.1%, 0%, 38%)
CIE-LABlab(30.48, 47.51, -54.16)
CIE-LCHlch(30.48, 72.05, 311.26°)
OKLaboklab(42.2% 0.0866 -0.1547)
OKLCHoklch(42.2% 0.177 299.2)
XYZxyz(11.5790, 6.4340, 32.9730)
Luminance0.0643 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E299E #699E29
analogous
#292F9E #5E299E #99299E
triadic
#5E299E #9E5E29 #299E5E
tetradic
#5E299E #9E292F #699E29 #299E99
square
#5E299E #9E292F #699E29 #299E99
split-complementary
#5E299E #9E9929 #2F9E29
monochromatic
#24103D #411C6D #5E299E #7B39CC #9B69D8

Accessibility & contrast

On white

9.18
#5E299E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#5E299E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E299E
9.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E299E#FFFFFF#000000##FFFFFF
##5E299E1.009.182.299.18
#FFFFFF9.181.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A1
Deuteranopia (green-blind)
#00479C
Tritanopia (blue-blind)
#4F4761
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5e299e;
/* rgb */ color: rgb(94, 41, 158);
/* oklch */ color: oklch(42.2% 0.177 299.2);
Tailwind
colors: {
  custom: {
    50: '#9268bc',
    500: '#5e299e',
    950: '#000000',
  },
}
SCSS
$custom: #5e299e;
$custom-light: #9268bc;
$custom-dark: #000000;
JSON
{
  "hex": "#5e299e",
  "rgb": {
    "r": 94,
    "g": 41,
    "b": 158
  },
  "hsl": {
    "h": 267.179,
    "s": 58.794,
    "l": 39.02
  },
  "oklch": {
    "l": 0.42197,
    "c": 0.17728,
    "h": 299.2
  },
  "luminance": 0.06434
}

Semantic roles & 50–950 ramp

primary
#5E299E
secondary
#96BF64
accent
#E2469B
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5E299E

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

Preview Lab → · Contrast checker → · Palette generator →

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