#5E1F9B#5E1F9B

#5E1F9B is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.9% C 0.185 H 301.4°. Best body text is #FFFFFF at 9.79:1 contrast (WCAG AA passes).

Color values

HEX#5E1F9B
RGBrgb(94, 31, 155)
HSLhsl(270, 67%, 36%)
HSVhsv(270, 80%, 61%)
CMYKcmyk(39.4%, 80%, 0%, 39.2%)
CIE-LABlab(28.71, 51.10, -55.23)
CIE-LCHlch(28.71, 75.24, 312.78°)
OKLaboklab(40.87% 0.0962 -0.1578)
OKLCHoklch(40.87% 0.185 301.4)
XYZxyz(11.0210, 5.7261, 31.5286)
Luminance0.0573 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1F9B #5C9B1F
analogous
#201F9B #5E1F9B #9B1F9A
triadic
#5E1F9B #9B5E1F #1F9B5E
tetradic
#5E1F9B #9B201F #5C9B1F #1F9A9B
square
#5E1F9B #9B201F #5C9B1F #1F9A9B
split-complementary
#5E1F9B #9A9B1F #1F9B20
monochromatic
#200B35 #3F1568 #5E1F9B #7D29CE #9B57DD

Accessibility & contrast

On white

9.79
#5E1F9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#5E1F9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1F9B
9.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1F9B#FFFFFF#000000##FFFFFF
##5E1F9B1.009.792.159.79
#FFFFFF9.791.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439E
Deuteranopia (green-blind)
#004399
Tritanopia (blue-blind)
#50415D
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5e1f9b;
/* rgb */ color: rgb(94, 31, 155);
/* oklch */ color: oklch(40.9% 0.185 301.4);
Tailwind
colors: {
  custom: {
    50: '#9263b9',
    500: '#5e1f9b',
    950: '#000000',
  },
}
SCSS
$custom: #5e1f9b;
$custom-light: #9263b9;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1f9b",
  "rgb": {
    "r": 94,
    "g": 31,
    "b": 155
  },
  "hsl": {
    "h": 270.484,
    "s": 66.667,
    "l": 36.471
  },
  "oklch": {
    "l": 0.40874,
    "c": 0.18479,
    "h": 301.4
  },
  "luminance": 0.05726
}

Semantic roles & 50–950 ramp

primary
#5E1F9B
secondary
#8AC155
accent
#EA3E93
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5E1F9B

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

Preview Lab → · Contrast checker → · Palette generator →

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