#5E1F8A#5E1F8A

#5E1F8A is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.4% C 0.167 H 306.9°. Best body text is #FFFFFF at 10.30:1 contrast (WCAG AA passes).

Color values

HEX#5E1F8A
RGBrgb(94, 31, 138)
HSLhsl(275, 63%, 33%)
HSVhsv(275, 78%, 54%)
CMYKcmyk(31.9%, 77.5%, 0%, 45.9%)
CIE-LABlab(27.28, 47.04, -47.07)
CIE-LCHlch(27.28, 66.55, 314.98°)
OKLaboklab(39.43% 0.1006 -0.1338)
OKLCHoklch(39.43% 0.167 306.9)
XYZxyz(9.6925, 5.1947, 24.5319)
Luminance0.0520 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1F8A #4B8A1F
analogous
#281F8A #5E1F8A #8A1F80
triadic
#5E1F8A #8A5E1F #1F8A5E
tetradic
#5E1F8A #8A281F #4B8A1F #1F808A
square
#5E1F8A #8A281F #4B8A1F #1F808A
split-complementary
#5E1F8A #808A1F #1F8A28
monochromatic
#1A0926 #3C1458 #5E1F8A #802ABC #9E4CD7

Accessibility & contrast

On white

10.30
#5E1F8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#5E1F8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1F8A
10.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1F8A#FFFFFF#000000##FFFFFF
##5E1F8A1.0010.302.0410.30
#FFFFFF10.301.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8D
Deuteranopia (green-blind)
#004188
Tritanopia (blue-blind)
#563953
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #5e1f8a;
/* rgb */ color: rgb(94, 31, 138);
/* oklch */ color: oklch(39.4% 0.167 306.9);
Tailwind
colors: {
  custom: {
    50: '#9062ad',
    500: '#5e1f8a',
    950: '#000000',
  },
}
SCSS
$custom: #5e1f8a;
$custom-light: #9062ad;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1f8a",
  "rgb": {
    "r": 94,
    "g": 31,
    "b": 138
  },
  "hsl": {
    "h": 275.327,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.3943,
    "c": 0.16739,
    "h": 306.9
  },
  "luminance": 0.05195
}

Semantic roles & 50–950 ramp

primary
#5E1F8A
secondary
#79BA4B
accent
#E64185
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0510
muted
#7E7A7F

Preview Lab

Preview with #5E1F8A

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

Preview Lab → · Contrast checker → · Palette generator →

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