#5E299D#5E299D

#5E299D is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.1% C 0.176 H 299.5°. Best body text is #FFFFFF at 9.21:1 contrast (WCAG AA passes).

Color values

HEX#5E299D
RGBrgb(94, 41, 157)
HSLhsl(267, 59%, 39%)
HSVhsv(267, 74%, 62%)
CMYKcmyk(40.1%, 73.9%, 0%, 38.4%)
CIE-LABlab(30.40, 47.25, -53.69)
CIE-LCHlch(30.40, 71.52, 311.35°)
OKLaboklab(42.11% 0.0868 -0.1533)
OKLCHoklch(42.11% 0.176 299.5)
XYZxyz(11.4933, 6.3997, 32.5215)
Luminance0.0640 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E299D #689D29
analogous
#292E9D #5E299D #98299D
triadic
#5E299D #9D5E29 #299D5E
tetradic
#5E299D #9D292E #689D29 #299D98
square
#5E299D #9D292E #689D29 #299D98
split-complementary
#5E299D #9D9829 #2E9D29
monochromatic
#24103C #411C6C #5E299D #7B38CB #9B69D8

Accessibility & contrast

On white

9.21
#5E299D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#5E299D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E299D
9.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E299D#FFFFFF#000000##FFFFFF
##5E299D1.009.212.289.21
#FFFFFF9.211.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A0
Deuteranopia (green-blind)
#00479B
Tritanopia (blue-blind)
#4F4661
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5e299d;
/* rgb */ color: rgb(94, 41, 157);
/* oklch */ color: oklch(42.1% 0.176 299.5);
Tailwind
colors: {
  custom: {
    50: '#9168bb',
    500: '#5e299d',
    950: '#000000',
  },
}
SCSS
$custom: #5e299d;
$custom-light: #9168bb;
$custom-dark: #000000;
JSON
{
  "hex": "#5e299d",
  "rgb": {
    "r": 94,
    "g": 41,
    "b": 157
  },
  "hsl": {
    "h": 267.414,
    "s": 58.586,
    "l": 38.824
  },
  "oklch": {
    "l": 0.42113,
    "c": 0.17617,
    "h": 299.5
  },
  "luminance": 0.064
}

Semantic roles & 50–950 ramp

primary
#5E299D
secondary
#95BE64
accent
#E2469B
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5E299D

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

Preview Lab → · Contrast checker → · Palette generator →

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