#5E299F#5E299F

#5E299F is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.3% C 0.178 H 298.9°. Best body text is #FFFFFF at 9.16:1 contrast (WCAG AA passes).

Color values

HEX#5E299F
RGBrgb(94, 41, 159)
HSLhsl(267, 59%, 39%)
HSVhsv(267, 74%, 62%)
CMYKcmyk(40.9%, 74.2%, 0%, 37.6%)
CIE-LABlab(30.57, 47.77, -54.64)
CIE-LCHlch(30.57, 72.57, 311.16°)
OKLaboklab(42.28% 0.0863 -0.1561)
OKLCHoklch(42.28% 0.178 298.9)
XYZxyz(11.6655, 6.4686, 33.4281)
Luminance0.0647 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E299F #6A9F29
analogous
#292F9F #5E299F #99299F
triadic
#5E299F #9F5E29 #299F5E
tetradic
#5E299F #9F292F #6A9F29 #299F99
square
#5E299F #9F292F #6A9F29 #299F99
split-complementary
#5E299F #9F9929 #2F9F29
monochromatic
#24103E #411C6E #5E299F #7B39CC #9C6AD9

Accessibility & contrast

On white

9.16
#5E299F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5E299F
9.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E299F#FFFFFF#000000##FFFFFF
##5E299F1.009.162.299.16
#FFFFFF9.161.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A2
Deuteranopia (green-blind)
#00479D
Tritanopia (blue-blind)
#4E4762
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5e299f;
/* rgb */ color: rgb(94, 41, 159);
/* oklch */ color: oklch(42.3% 0.178 298.9);
Tailwind
colors: {
  custom: {
    50: '#9268bc',
    500: '#5e299f',
    950: '#000000',
  },
}
SCSS
$custom: #5e299f;
$custom-light: #9268bc;
$custom-dark: #000000;
JSON
{
  "hex": "#5e299f",
  "rgb": {
    "r": 94,
    "g": 41,
    "b": 159
  },
  "hsl": {
    "h": 266.949,
    "s": 59,
    "l": 39.216
  },
  "oklch": {
    "l": 0.42282,
    "c": 0.17839,
    "h": 298.9
  },
  "luminance": 0.06469
}

Semantic roles & 50–950 ramp

primary
#5E299F
secondary
#96BF65
accent
#E2469C
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5E299F

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

Preview Lab → · Contrast checker → · Palette generator →

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