#5E1F86#5E1F86

#5E1F86 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.1% C 0.163 H 308.4°. Best body text is #FFFFFF at 10.42:1 contrast (WCAG AA passes).

Color values

HEX#5E1F86
RGBrgb(94, 31, 134)
HSLhsl(277, 62%, 32%)
HSVhsv(277, 77%, 53%)
CMYKcmyk(29.9%, 76.9%, 0%, 47.5%)
CIE-LABlab(26.96, 46.10, -45.09)
CIE-LCHlch(26.96, 64.49, 315.63°)
OKLaboklab(39.11% 0.1014 -0.128)
OKLCHoklch(39.11% 0.163 308.4)
XYZxyz(9.4083, 5.0810, 23.0347)
Luminance0.0508 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1F86 #47861F
analogous
#2B1F86 #5E1F86 #861F7B
triadic
#5E1F86 #865E1F #1F865E
tetradic
#5E1F86 #862B1F #47861F #1F7B86
square
#5E1F86 #862B1F #47861F #1F7B86
split-complementary
#5E1F86 #7B861F #1F862B
monochromatic
#180823 #3B1454 #5E1F86 #812AB8 #9F4AD5

Accessibility & contrast

On white

10.42
#5E1F86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#5E1F86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1F86
10.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1F86#FFFFFF#000000##FFFFFF
##5E1F861.0010.422.0210.42
#FFFFFF10.421.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D89
Deuteranopia (green-blind)
#004084
Tritanopia (blue-blind)
#583851
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #5e1f86;
/* rgb */ color: rgb(94, 31, 134);
/* oklch */ color: oklch(39.1% 0.163 308.4);
Tailwind
colors: {
  custom: {
    50: '#9062aa',
    500: '#5e1f86',
    950: '#000000',
  },
}
SCSS
$custom: #5e1f86;
$custom-light: #9062aa;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1f86",
  "rgb": {
    "r": 94,
    "g": 31,
    "b": 134
  },
  "hsl": {
    "h": 276.699,
    "s": 62.424,
    "l": 32.353
  },
  "oklch": {
    "l": 0.39106,
    "c": 0.1633,
    "h": 308.4
  },
  "luminance": 0.05081
}

Semantic roles & 50–950 ramp

primary
#5E1F86
secondary
#74B849
accent
#E54282
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0510
muted
#7E7A7F

Preview Lab

Preview with #5E1F86

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

Preview Lab → · Contrast checker → · Palette generator →

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