#5E2999#5E2999

#5E2999 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.8% C 0.172 H 300.7°. Best body text is #FFFFFF at 9.32:1 contrast (WCAG AA passes).

Color values

HEX#5E2999
RGBrgb(94, 41, 153)
HSLhsl(268, 58%, 38%)
HSVhsv(268, 73%, 60%)
CMYKcmyk(38.6%, 73.2%, 0%, 40%)
CIE-LABlab(30.07, 46.23, -51.79)
CIE-LCHlch(30.07, 69.42, 311.76°)
OKLaboklab(41.78% 0.0876 -0.1477)
OKLCHoklch(41.78% 0.172 300.7)
XYZxyz(11.1574, 6.2654, 30.7523)
Luminance0.0626 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2999 #649929
analogous
#292C99 #5E2999 #962999
triadic
#5E2999 #995E29 #29995E
tetradic
#5E2999 #99292C #649929 #299996
square
#5E2999 #99292C #649929 #299996
split-complementary
#5E2999 #999629 #2C9929
monochromatic
#230F38 #401C69 #5E2999 #7C36C9 #9B66D6

Accessibility & contrast

On white

9.32
#5E2999 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#5E2999 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2999
9.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2999#FFFFFF#000000##FFFFFF
##5E29991.009.322.259.32
#FFFFFF9.321.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469C
Deuteranopia (green-blind)
#004697
Tritanopia (blue-blind)
#51455E
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5e2999;
/* rgb */ color: rgb(94, 41, 153);
/* oklch */ color: oklch(41.8% 0.172 300.7);
Tailwind
colors: {
  custom: {
    50: '#9168b8',
    500: '#5e2999',
    950: '#000000',
  },
}
SCSS
$custom: #5e2999;
$custom-light: #9168b8;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2999",
  "rgb": {
    "r": 94,
    "g": 41,
    "b": 153
  },
  "hsl": {
    "h": 268.393,
    "s": 57.732,
    "l": 38.039
  },
  "oklch": {
    "l": 0.41779,
    "c": 0.17175,
    "h": 300.7
  },
  "luminance": 0.06265
}

Semantic roles & 50–950 ramp

primary
#5E2999
secondary
#91BC62
accent
#E14798
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5E2999

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

Preview Lab → · Contrast checker → · Palette generator →

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