#5E1F83#5E1F83

#5E1F83 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.9% C 0.160 H 309.5°. Best body text is #FFFFFF at 10.50:1 contrast (WCAG AA passes).

Color values

HEX#5E1F83
RGBrgb(94, 31, 131)
HSLhsl(278, 62%, 32%)
HSVhsv(278, 76%, 51%)
CMYKcmyk(28.2%, 76.3%, 0%, 48.6%)
CIE-LABlab(26.73, 45.41, -43.59)
CIE-LCHlch(26.73, 62.95, 316.17°)
OKLaboklab(38.87% 0.102 -0.1236)
OKLCHoklch(38.87% 0.16 309.5)
XYZxyz(9.2020, 4.9985, 21.9484)
Luminance0.0500 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1F83 #44831F
analogous
#2C1F83 #5E1F83 #831F76
triadic
#5E1F83 #835E1F #1F835E
tetradic
#5E1F83 #832C1F #44831F #1F7683
square
#5E1F83 #832C1F #44831F #1F7683
split-complementary
#5E1F83 #76831F #1F832C
monochromatic
#170820 #3A1352 #5E1F83 #822BB4 #A049D4

Accessibility & contrast

On white

10.50
#5E1F83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#5E1F83 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1F83
10.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1F83#FFFFFF#000000##FFFFFF
##5E1F831.0010.502.0010.50
#FFFFFF10.501.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D86
Deuteranopia (green-blind)
#044081
Tritanopia (blue-blind)
#59364F
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5e1f83;
/* rgb */ color: rgb(94, 31, 131);
/* oklch */ color: oklch(38.9% 0.160 309.5);
Tailwind
colors: {
  custom: {
    50: '#9061a8',
    500: '#5e1f83',
    950: '#000000',
  },
}
SCSS
$custom: #5e1f83;
$custom-light: #9061a8;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1f83",
  "rgb": {
    "r": 94,
    "g": 31,
    "b": 131
  },
  "hsl": {
    "h": 277.8,
    "s": 61.728,
    "l": 31.765
  },
  "oklch": {
    "l": 0.38867,
    "c": 0.16023,
    "h": 309.5
  },
  "luminance": 0.04998
}

Semantic roles & 50–950 ramp

primary
#5E1F83
secondary
#71B648
accent
#E5437F
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0510
muted
#7E7A7F

Preview Lab

Preview with #5E1F83

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

Preview Lab → · Contrast checker → · Palette generator →

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