#5E1F89#5E1F89

#5E1F89 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.3% C 0.166 H 307.3°. Best body text is #FFFFFF at 10.33:1 contrast (WCAG AA passes).

Color values

HEX#5E1F89
RGBrgb(94, 31, 137)
HSLhsl(276, 63%, 33%)
HSVhsv(276, 77%, 54%)
CMYKcmyk(31.4%, 77.4%, 0%, 46.3%)
CIE-LABlab(27.20, 46.80, -46.58)
CIE-LCHlch(27.20, 66.03, 315.13°)
OKLaboklab(39.35% 0.1008 -0.1324)
OKLCHoklch(39.35% 0.166 307.3)
XYZxyz(9.6205, 5.1659, 24.1524)
Luminance0.0517 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1F89 #4A891F
analogous
#291F89 #5E1F89 #891F7F
triadic
#5E1F89 #895E1F #1F895E
tetradic
#5E1F89 #89291F #4A891F #1F7F89
square
#5E1F89 #89291F #4A891F #1F7F89
split-complementary
#5E1F89 #7F891F #1F8929
monochromatic
#1A0825 #3C1457 #5E1F89 #802ABB #9E4CD6

Accessibility & contrast

On white

10.33
#5E1F89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#5E1F89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1F89
10.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1F89#FFFFFF#000000##FFFFFF
##5E1F891.0010.332.0310.33
#FFFFFF10.331.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8C
Deuteranopia (green-blind)
#004187
Tritanopia (blue-blind)
#573953
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #5e1f89;
/* rgb */ color: rgb(94, 31, 137);
/* oklch */ color: oklch(39.3% 0.166 307.3);
Tailwind
colors: {
  custom: {
    50: '#9062ac',
    500: '#5e1f89',
    950: '#000000',
  },
}
SCSS
$custom: #5e1f89;
$custom-light: #9062ac;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1f89",
  "rgb": {
    "r": 94,
    "g": 31,
    "b": 137
  },
  "hsl": {
    "h": 275.66,
    "s": 63.095,
    "l": 32.941
  },
  "oklch": {
    "l": 0.39348,
    "c": 0.16636,
    "h": 307.3
  },
  "luminance": 0.05166
}

Semantic roles & 50–950 ramp

primary
#5E1F89
secondary
#77B94B
accent
#E64284
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0510
muted
#7E7A7F

Preview Lab

Preview with #5E1F89

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

Preview Lab → · Contrast checker → · Palette generator →

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