#5E1F8D#5E1F8D

#5E1F8D is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.7% C 0.170 H 305.9°. Best body text is #FFFFFF at 10.21:1 contrast (WCAG AA passes).

Color values

HEX#5E1F8D
RGBrgb(94, 31, 141)
HSLhsl(274, 64%, 34%)
HSVhsv(274, 78%, 55%)
CMYKcmyk(33.3%, 78%, 0%, 44.7%)
CIE-LABlab(27.53, 47.74, -48.54)
CIE-LCHlch(27.53, 68.09, 314.52°)
OKLaboklab(39.68% 0.0999 -0.1381)
OKLCHoklch(39.68% 0.17 305.9)
XYZxyz(9.9127, 5.2828, 25.6916)
Luminance0.0528 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1F8D #4E8D1F
analogous
#271F8D #5E1F8D #8D1F85
triadic
#5E1F8D #8D5E1F #1F8D5E
tetradic
#5E1F8D #8D271F #4E8D1F #1F858D
square
#5E1F8D #8D271F #4E8D1F #1F858D
split-complementary
#5E1F8D #858D1F #1F8D27
monochromatic
#1B0929 #3D145B #5E1F8D #7F2ABF #9D4ED8

Accessibility & contrast

On white

10.21
#5E1F8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#5E1F8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1F8D
10.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1F8D#FFFFFF#000000##FFFFFF
##5E1F8D1.0010.212.0610.21
#FFFFFF10.211.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F90
Deuteranopia (green-blind)
#00418B
Tritanopia (blue-blind)
#553B55
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5e1f8d;
/* rgb */ color: rgb(94, 31, 141);
/* oklch */ color: oklch(39.7% 0.170 305.9);
Tailwind
colors: {
  custom: {
    50: '#9162af',
    500: '#5e1f8d',
    950: '#000000',
  },
}
SCSS
$custom: #5e1f8d;
$custom-light: #9162af;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1f8d",
  "rgb": {
    "r": 94,
    "g": 31,
    "b": 141
  },
  "hsl": {
    "h": 274.364,
    "s": 63.953,
    "l": 33.725
  },
  "oklch": {
    "l": 0.39677,
    "c": 0.17046,
    "h": 305.9
  },
  "luminance": 0.05283
}

Semantic roles & 50–950 ramp

primary
#5E1F8D
secondary
#7CBB4D
accent
#E74188
background
#F9F6FA
surface
#F2EBF5
border
#CCC6CF
text
#0D0510
muted
#7E7A7F

Preview Lab

Preview with #5E1F8D

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

Preview Lab → · Contrast checker → · Palette generator →

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