#5E2D97#5E2D97

#5E2D97 is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.1% C 0.164 H 300.6°. Best body text is #FFFFFF at 9.14:1 contrast (WCAG AA passes).

Color values

HEX#5E2D97
RGBrgb(94, 45, 151)
HSLhsl(268, 54%, 38%)
HSVhsv(268, 70%, 59%)
CMYKcmyk(37.7%, 70.2%, 0%, 40.8%)
CIE-LABlab(30.62, 43.74, -49.68)
CIE-LCHlch(30.62, 66.19, 311.37°)
OKLaboklab(42.12% 0.0838 -0.1415)
OKLCHoklch(42.12% 0.164 300.6)
XYZxyz(11.1390, 6.4907, 29.9381)
Luminance0.0649 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2D97 #66972D
analogous
#2D3197 #5E2D97 #932D97
triadic
#5E2D97 #975E2D #2D975E
tetradic
#5E2D97 #972D31 #66972D #2D9793
square
#5E2D97 #972D31 #66972D #2D9793
split-complementary
#5E2D97 #97932D #31972D
monochromatic
#231139 #411F68 #5E2D97 #7B3CC5 #9B6BD3

Accessibility & contrast

On white

9.14
#5E2D97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#5E2D97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2D97
9.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2D97#FFFFFF#000000##FFFFFF
##5E2D971.009.142.309.14
#FFFFFF9.141.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489A
Deuteranopia (green-blind)
#004795
Tritanopia (blue-blind)
#51465E
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5e2d97;
/* rgb */ color: rgb(94, 45, 151);
/* oklch */ color: oklch(42.1% 0.164 300.6);
Tailwind
colors: {
  custom: {
    50: '#916ab6',
    500: '#5e2d97',
    950: '#000000',
  },
}
SCSS
$custom: #5e2d97;
$custom-light: #916ab6;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2d97",
  "rgb": {
    "r": 94,
    "g": 45,
    "b": 151
  },
  "hsl": {
    "h": 267.736,
    "s": 54.082,
    "l": 38.431
  },
  "oklch": {
    "l": 0.42118,
    "c": 0.16449,
    "h": 300.6
  },
  "luminance": 0.06491
}

Semantic roles & 50–950 ramp

primary
#5E2D97
secondary
#93BA66
accent
#DD4A99
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0711
muted
#7E7A80

Preview Lab

Preview with #5E2D97

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

Preview Lab → · Contrast checker → · Palette generator →

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