#5E1F93#5E1F93

#5E1F93 is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.2% C 0.177 H 303.9°. Best body text is #FFFFFF at 10.03:1 contrast (WCAG AA passes).

Color values

HEX#5E1F93
RGBrgb(94, 31, 147)
HSLhsl(273, 65%, 35%)
HSVhsv(273, 79%, 58%)
CMYKcmyk(36.1%, 78.9%, 0%, 42.4%)
CIE-LABlab(28.02, 49.17, -51.44)
CIE-LCHlch(28.02, 71.16, 313.71°)
OKLaboklab(40.18% 0.0984 -0.1466)
OKLCHoklch(40.18% 0.177 303.9)
XYZxyz(10.3713, 5.4663, 28.1068)
Luminance0.0547 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1F93 #54931F
analogous
#241F93 #5E1F93 #931F8E
triadic
#5E1F93 #935E1F #1F935E
tetradic
#5E1F93 #93241F #54931F #1F8E93
square
#5E1F93 #93241F #54931F #1F8E93
split-complementary
#5E1F93 #8E931F #1F9324
monochromatic
#1D0A2E #3E1460 #5E1F93 #7E2AC6 #9C52DA

Accessibility & contrast

On white

10.03
#5E1F93 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#5E1F93 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1F93
10.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1F93#FFFFFF#000000##FFFFFF
##5E1F931.0010.032.0910.03
#FFFFFF10.031.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004196
Deuteranopia (green-blind)
#004291
Tritanopia (blue-blind)
#533D58
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5e1f93;
/* rgb */ color: rgb(94, 31, 147);
/* oklch */ color: oklch(40.2% 0.177 303.9);
Tailwind
colors: {
  custom: {
    50: '#9162b4',
    500: '#5e1f93',
    950: '#000000',
  },
}
SCSS
$custom: #5e1f93;
$custom-light: #9162b4;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1f93",
  "rgb": {
    "r": 94,
    "g": 31,
    "b": 147
  },
  "hsl": {
    "h": 272.586,
    "s": 65.169,
    "l": 34.902
  },
  "oklch": {
    "l": 0.40181,
    "c": 0.1766,
    "h": 303.9
  },
  "luminance": 0.05466
}

Semantic roles & 50–950 ramp

primary
#5E1F93
secondary
#82BE50
accent
#E8408D
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5E1F93

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

Preview Lab → · Contrast checker → · Palette generator →

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