#5E2D99#5E2D99

#5E2D99 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.3% C 0.167 H 300.0°. Best body text is #FFFFFF at 9.09:1 contrast (WCAG AA passes).

Color values

HEX#5E2D99
RGBrgb(94, 45, 153)
HSLhsl(267, 55%, 39%)
HSVhsv(267, 71%, 60%)
CMYKcmyk(38.6%, 70.6%, 0%, 40%)
CIE-LABlab(30.77, 44.26, -50.64)
CIE-LCHlch(30.77, 67.26, 311.15°)
OKLaboklab(42.28% 0.0835 -0.1444)
OKLCHoklch(42.28% 0.167 300)
XYZxyz(11.3028, 6.5563, 30.8008)
Luminance0.0656 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2D99 #68992D
analogous
#2D3299 #5E2D99 #942D99
triadic
#5E2D99 #995E2D #2D995E
tetradic
#5E2D99 #992D32 #68992D #2D9994
square
#5E2D99 #992D32 #68992D #2D9994
split-complementary
#5E2D99 #99942D #32992D
monochromatic
#24113A #411F6A #5E2D99 #7B3DC6 #9B6CD4

Accessibility & contrast

On white

9.09
#5E2D99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#5E2D99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2D99
9.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2D99#FFFFFF#000000##FFFFFF
##5E2D991.009.092.319.09
#FFFFFF9.091.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489C
Deuteranopia (green-blind)
#004897
Tritanopia (blue-blind)
#51475F
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5e2d99;
/* rgb */ color: rgb(94, 45, 153);
/* oklch */ color: oklch(42.3% 0.167 300.0);
Tailwind
colors: {
  custom: {
    50: '#916ab8',
    500: '#5e2d99',
    950: '#000000',
  },
}
SCSS
$custom: #5e2d99;
$custom-light: #916ab8;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2d99",
  "rgb": {
    "r": 94,
    "g": 45,
    "b": 153
  },
  "hsl": {
    "h": 267.222,
    "s": 54.545,
    "l": 38.824
  },
  "oklch": {
    "l": 0.42279,
    "c": 0.16678,
    "h": 300
  },
  "luminance": 0.06556
}

Semantic roles & 50–950 ramp

primary
#5E2D99
secondary
#95BB67
accent
#DE4A9B
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0711
muted
#7E7A80

Preview Lab

Preview with #5E2D99

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

Preview Lab → · Contrast checker → · Palette generator →

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