#5E1F8E#5E1F8E

#5E1F8E is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.8% C 0.171 H 305.5°. Best body text is #FFFFFF at 10.18:1 contrast (WCAG AA passes).

Color values

HEX#5E1F8E
RGBrgb(94, 31, 142)
HSLhsl(274, 64%, 34%)
HSVhsv(274, 78%, 56%)
CMYKcmyk(33.8%, 78.2%, 0%, 44.3%)
CIE-LABlab(27.61, 47.98, -49.03)
CIE-LCHlch(27.61, 68.60, 314.38°)
OKLaboklab(39.76% 0.0996 -0.1396)
OKLCHoklch(39.76% 0.171 305.5)
XYZxyz(9.9875, 5.3127, 26.0852)
Luminance0.0531 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1F8E #4F8E1F
analogous
#271F8E #5E1F8E #8E1F87
triadic
#5E1F8E #8E5E1F #1F8E5E
tetradic
#5E1F8E #8E271F #4F8E1F #1F878E
square
#5E1F8E #8E271F #4F8E1F #1F878E
split-complementary
#5E1F8E #878E1F #1F8E27
monochromatic
#1B092A #3D145C #5E1F8E #7F2AC0 #9D4FD9

Accessibility & contrast

On white

10.18
#5E1F8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5E1F8E
10.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1F8E#FFFFFF#000000##FFFFFF
##5E1F8E1.0010.182.0610.18
#FFFFFF10.181.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F91
Deuteranopia (green-blind)
#00418C
Tritanopia (blue-blind)
#553B56
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5e1f8e;
/* rgb */ color: rgb(94, 31, 142);
/* oklch */ color: oklch(39.8% 0.171 305.5);
Tailwind
colors: {
  custom: {
    50: '#9162b0',
    500: '#5e1f8e',
    950: '#000000',
  },
}
SCSS
$custom: #5e1f8e;
$custom-light: #9162b0;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1f8e",
  "rgb": {
    "r": 94,
    "g": 31,
    "b": 142
  },
  "hsl": {
    "h": 274.054,
    "s": 64.162,
    "l": 33.922
  },
  "oklch": {
    "l": 0.3976,
    "c": 0.17148,
    "h": 305.5
  },
  "luminance": 0.05313
}

Semantic roles & 50–950 ramp

primary
#5E1F8E
secondary
#7DBB4D
accent
#E74189
background
#F9F6FA
surface
#F2EBF5
border
#CCC6CF
text
#0D0511
muted
#7E7A80

Preview Lab

Preview with #5E1F8E

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

Preview Lab → · Contrast checker → · Palette generator →

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