#5E1F85#5E1F85

#5E1F85 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.0% C 0.162 H 308.8°. Best body text is #FFFFFF at 10.44:1 contrast (WCAG AA passes).

Color values

HEX#5E1F85
RGBrgb(94, 31, 133)
HSLhsl(277, 62%, 32%)
HSVhsv(277, 77%, 52%)
CMYKcmyk(29.3%, 76.7%, 0%, 47.8%)
CIE-LABlab(26.89, 45.87, -44.60)
CIE-LCHlch(26.89, 63.97, 315.81°)
OKLaboklab(39.03% 0.1016 -0.1265)
OKLCHoklch(39.03% 0.162 308.8)
XYZxyz(9.3389, 5.0533, 22.6692)
Luminance0.0505 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1F85 #46851F
analogous
#2B1F85 #5E1F85 #851F79
triadic
#5E1F85 #855E1F #1F855E
tetradic
#5E1F85 #852B1F #46851F #1F7985
square
#5E1F85 #852B1F #46851F #1F7985
split-complementary
#5E1F85 #79851F #1F852B
monochromatic
#180822 #3B1353 #5E1F85 #812BB7 #A04AD5

Accessibility & contrast

On white

10.44
#5E1F85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#5E1F85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1F85
10.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1F85#FFFFFF#000000##FFFFFF
##5E1F851.0010.442.0110.44
#FFFFFF10.441.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D88
Deuteranopia (green-blind)
#004083
Tritanopia (blue-blind)
#583751
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #5e1f85;
/* rgb */ color: rgb(94, 31, 133);
/* oklch */ color: oklch(39.0% 0.162 308.8);
Tailwind
colors: {
  custom: {
    50: '#9062a9',
    500: '#5e1f85',
    950: '#000000',
  },
}
SCSS
$custom: #5e1f85;
$custom-light: #9062a9;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1f85",
  "rgb": {
    "r": 94,
    "g": 31,
    "b": 133
  },
  "hsl": {
    "h": 277.059,
    "s": 62.195,
    "l": 32.157
  },
  "oklch": {
    "l": 0.39026,
    "c": 0.16227,
    "h": 308.8
  },
  "luminance": 0.05053
}

Semantic roles & 50–950 ramp

primary
#5E1F85
secondary
#73B749
accent
#E54381
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0510
muted
#7E7A7F

Preview Lab

Preview with #5E1F85

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

Preview Lab → · Contrast checker → · Palette generator →

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