#5E1977#5E1977

#5E1977 is a dark, vivid purple. Relative luminance 0.044; OKLCH L 37.3% C 0.155 H 315.1°. Best body text is #FFFFFF at 11.16:1 contrast (WCAG AA passes).

Color values

HEX#5E1977
RGBrgb(94, 25, 119)
HSLhsl(284, 65%, 28%)
HSVhsv(284, 79%, 47%)
CMYKcmyk(21%, 79%, 0%, 53.3%)
CIE-LABlab(24.97, 45.15, -38.84)
CIE-LCHlch(24.97, 59.56, 319.30°)
OKLaboklab(37.34% 0.11 -0.1096)
OKLCHoklch(37.34% 0.155 315.1)
XYZxyz(8.2930, 4.4072, 17.8630)
Luminance0.0441 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1977 #327719
analogous
#2F1977 #5E1977 #771961
triadic
#5E1977 #775E19 #19775E
tetradic
#5E1977 #772F19 #327719 #196177
square
#5E1977 #772F19 #327719 #196177
split-complementary
#5E1977 #617719 #19772F
monochromatic
#140519 #360E44 #5E1977 #8624AA #AA36D5

Accessibility & contrast

On white

11.16
#5E1977 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#5E1977 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1977
11.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1977#FFFFFF#000000##FFFFFF
##5E19771.0011.161.8811.16
#FFFFFF11.161.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377A
Deuteranopia (green-blind)
#153D75
Tritanopia (blue-blind)
#5C2E47
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #5e1977;
/* rgb */ color: rgb(94, 25, 119);
/* oklch */ color: oklch(37.3% 0.155 315.1);
Tailwind
colors: {
  custom: {
    50: '#8f5e9f',
    500: '#5e1977',
    950: '#000000',
  },
}
SCSS
$custom: #5e1977;
$custom-light: #8f5e9f;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1977",
  "rgb": {
    "r": 94,
    "g": 25,
    "b": 119
  },
  "hsl": {
    "h": 284.043,
    "s": 65.278,
    "l": 28.235
  },
  "oklch": {
    "l": 0.37338,
    "c": 0.15526,
    "h": 315.1
  },
  "luminance": 0.04407
}

Semantic roles & 50–950 ramp

primary
#5E1977
secondary
#5DAC40
accent
#E8406C
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D050E
muted
#7E797E

Preview Lab

Preview with #5E1977

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

Preview Lab → · Contrast checker → · Palette generator →

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