#5E2D96#5E2D96

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

Color values

HEX#5E2D96
RGBrgb(94, 45, 150)
HSLhsl(268, 54%, 38%)
HSVhsv(268, 70%, 59%)
CMYKcmyk(37.3%, 70%, 0%, 41.2%)
CIE-LABlab(30.54, 43.48, -49.19)
CIE-LCHlch(30.54, 65.66, 311.48°)
OKLaboklab(42.04% 0.0839 -0.1401)
OKLCHoklch(42.04% 0.163 300.9)
XYZxyz(11.0582, 6.4584, 29.5123)
Luminance0.0646 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2D96 #65962D
analogous
#2D3096 #5E2D96 #922D96
triadic
#5E2D96 #965E2D #2D965E
tetradic
#5E2D96 #962D30 #65962D #2D9692
square
#5E2D96 #962D30 #65962D #2D9692
split-complementary
#5E2D96 #96922D #30962D
monochromatic
#231138 #401F67 #5E2D96 #7C3CC4 #9B6BD3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5E2D96#FFFFFF#000000##FFFFFF
##5E2D961.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)
#004799
Deuteranopia (green-blind)
#004794
Tritanopia (blue-blind)
#52465E
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5e2d96;
/* rgb */ color: rgb(94, 45, 150);
/* oklch */ color: oklch(42.0% 0.163 300.9);
Tailwind
colors: {
  custom: {
    50: '#906ab6',
    500: '#5e2d96',
    950: '#000000',
  },
}
SCSS
$custom: #5e2d96;
$custom-light: #906ab6;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2d96",
  "rgb": {
    "r": 94,
    "g": 45,
    "b": 150
  },
  "hsl": {
    "h": 268,
    "s": 53.846,
    "l": 38.235
  },
  "oklch": {
    "l": 0.42038,
    "c": 0.16333,
    "h": 300.9
  },
  "luminance": 0.06458
}

Semantic roles & 50–950 ramp

primary
#5E2D96
secondary
#92B965
accent
#DD4B99
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0711
muted
#7E7A80

Preview Lab

Preview with #5E2D96

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

Preview Lab → · Contrast checker → · Palette generator →

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