#5E1F80#5E1F80

#5E1F80 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.6% C 0.157 H 310.7°. Best body text is #FFFFFF at 10.59:1 contrast (WCAG AA passes).

Color values

HEX#5E1F80
RGBrgb(94, 31, 128)
HSLhsl(279, 61%, 31%)
HSVhsv(279, 76%, 50%)
CMYKcmyk(26.6%, 75.8%, 0%, 49.8%)
CIE-LABlab(26.50, 44.72, -42.08)
CIE-LCHlch(26.50, 61.40, 316.74°)
OKLaboklab(38.63% 0.1025 -0.1191)
OKLCHoklch(38.63% 0.157 310.7)
XYZxyz(9.0016, 4.9184, 20.8930)
Luminance0.0492 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1F80 #41801F
analogous
#2D1F80 #5E1F80 #801F71
triadic
#5E1F80 #805E1F #1F805E
tetradic
#5E1F80 #802D1F #41801F #1F7180
square
#5E1F80 #802D1F #41801F #1F7180
split-complementary
#5E1F80 #71801F #1F802D
monochromatic
#16071D #3A134F #5E1F80 #822BB1 #A247D2

Accessibility & contrast

On white

10.59
#5E1F80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#5E1F80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1F80
10.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1F80#FFFFFF#000000##FFFFFF
##5E1F801.0010.591.9810.59
#FFFFFF10.591.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C83
Deuteranopia (green-blind)
#0C407E
Tritanopia (blue-blind)
#59354E
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5e1f80;
/* rgb */ color: rgb(94, 31, 128);
/* oklch */ color: oklch(38.6% 0.157 310.7);
Tailwind
colors: {
  custom: {
    50: '#8f61a5',
    500: '#5e1f80',
    950: '#000000',
  },
}
SCSS
$custom: #5e1f80;
$custom-light: #8f61a5;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1f80",
  "rgb": {
    "r": 94,
    "g": 31,
    "b": 128
  },
  "hsl": {
    "h": 278.969,
    "s": 61.006,
    "l": 31.176
  },
  "oklch": {
    "l": 0.38632,
    "c": 0.15717,
    "h": 310.7
  },
  "luminance": 0.04918
}

Semantic roles & 50–950 ramp

primary
#5E1F80
secondary
#6DB348
accent
#E4447C
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D050F
muted
#7E7A7F

Preview Lab

Preview with #5E1F80

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

Preview Lab → · Contrast checker → · Palette generator →

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