#5E1674#5E1674

#5E1674 is a dark, vivid purple. Relative luminance 0.042; OKLCH L 36.8% C 0.156 H 316.7°. Best body text is #FFFFFF at 11.40:1 contrast (WCAG AA passes).

Color values

HEX#5E1674
RGBrgb(94, 22, 116)
HSLhsl(286, 68%, 27%)
HSVhsv(286, 81%, 45%)
CMYKcmyk(19%, 81%, 0%, 54.5%)
CIE-LABlab(24.37, 45.62, -37.90)
CIE-LCHlch(24.37, 59.31, 320.28°)
OKLaboklab(36.84% 0.1133 -0.1068)
OKLCHoklch(36.84% 0.156 316.7)
XYZxyz(8.0549, 4.2148, 16.9089)
Luminance0.0421 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1674 #2C7416
analogous
#2F1674 #5E1674 #74165B
triadic
#5E1674 #745E16 #16745E
tetradic
#5E1674 #742F16 #2C7416 #165B74
square
#5E1674 #742F16 #2C7416 #165B74
split-complementary
#5E1674 #5B7416 #16742F
monochromatic
#15051A #340C41 #5E1674 #8820A7 #AF2DD7

Accessibility & contrast

On white

11.40
#5E1674 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#5E1674 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1674
11.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1674#FFFFFF#000000##FFFFFF
##5E16741.0011.401.8411.40
#FFFFFF11.401.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003677
Deuteranopia (green-blind)
#163C72
Tritanopia (blue-blind)
#5D2B45
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5e1674;
/* rgb */ color: rgb(94, 22, 116);
/* oklch */ color: oklch(36.8% 0.156 316.7);
Tailwind
colors: {
  custom: {
    50: '#8f5d9d',
    500: '#5e1674',
    950: '#000000',
  },
}
SCSS
$custom: #5e1674;
$custom-light: #8f5d9d;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1674",
  "rgb": {
    "r": 94,
    "g": 22,
    "b": 116
  },
  "hsl": {
    "h": 285.957,
    "s": 68.116,
    "l": 27.059
  },
  "oklch": {
    "l": 0.3684,
    "c": 0.15567,
    "h": 316.7
  },
  "luminance": 0.04214
}

Semantic roles & 50–950 ramp

primary
#5E1674
secondary
#56AA3C
accent
#EB3D66
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D050E
muted
#7E797E

Preview Lab

Preview with #5E1674

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

Preview Lab → · Contrast checker → · Palette generator →

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