#5E2F99#5E2F99

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

Color values

HEX#5E2F99
RGBrgb(94, 47, 153)
HSLhsl(267, 53%, 39%)
HSVhsv(267, 69%, 60%)
CMYKcmyk(38.6%, 69.3%, 0%, 40%)
CIE-LABlab(31.14, 43.24, -50.05)
CIE-LCHlch(31.14, 66.14, 310.83°)
OKLaboklab(42.54% 0.0813 -0.1426)
OKLCHoklch(42.54% 0.164 299.7)
XYZxyz(11.3810, 6.7125, 30.8269)
Luminance0.0671 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2F99 #6A992F
analogous
#2F3599 #5E2F99 #932F99
triadic
#5E2F99 #995E2F #2F995E
tetradic
#5E2F99 #992F35 #6A992F #2F9993
square
#5E2F99 #992F35 #6A992F #2F9993
split-complementary
#5E2F99 #99932F #35992F
monochromatic
#24123B #41216A #5E2F99 #7B41C5 #9C6FD3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5E2F99#FFFFFF#000000##FFFFFF
##5E2F991.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)
#00499C
Deuteranopia (green-blind)
#004897
Tritanopia (blue-blind)
#514860
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5e2f99;
/* rgb */ color: rgb(94, 47, 153);
/* oklch */ color: oklch(42.5% 0.164 299.7);
Tailwind
colors: {
  custom: {
    50: '#916bb8',
    500: '#5e2f99',
    950: '#000000',
  },
}
SCSS
$custom: #5e2f99;
$custom-light: #916bb8;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2f99",
  "rgb": {
    "r": 94,
    "g": 47,
    "b": 153
  },
  "hsl": {
    "h": 266.604,
    "s": 53,
    "l": 39.216
  },
  "oklch": {
    "l": 0.42542,
    "c": 0.16419,
    "h": 299.7
  },
  "luminance": 0.06713
}

Semantic roles & 50–950 ramp

primary
#5E2F99
secondary
#96BA69
accent
#DC4B9C
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0711
muted
#7E7A80

Preview Lab

Preview with #5E2F99

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

Preview Lab → · Contrast checker → · Palette generator →

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