#5E1875#5E1875

#5E1875 is a dark, vivid purple. Relative luminance 0.043; OKLCH L 37.1% C 0.154 H 316.1°. Best body text is #FFFFFF at 11.27:1 contrast (WCAG AA passes).

Color values

HEX#5E1875
RGBrgb(94, 24, 117)
HSLhsl(285, 66%, 28%)
HSVhsv(285, 79%, 46%)
CMYKcmyk(19.7%, 79.5%, 0%, 54.1%)
CIE-LABlab(24.69, 45.10, -38.01)
CIE-LCHlch(24.69, 58.99, 319.87°)
OKLaboklab(37.09% 0.1113 -0.1071)
OKLCHoklch(37.09% 0.154 316.1)
XYZxyz(8.1531, 4.3176, 17.2301)
Luminance0.0432 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1875 #2F7518
analogous
#2F1875 #5E1875 #75185E
triadic
#5E1875 #755E18 #18755E
tetradic
#5E1875 #752F18 #2F7518 #185E75
square
#5E1875 #752F18 #2F7518 #185E75
split-complementary
#5E1875 #5E7518 #18752F
monochromatic
#140519 #350E42 #5E1875 #8722A8 #AD32D5

Accessibility & contrast

On white

11.27
#5E1875 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#5E1875 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1875
11.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1875#FFFFFF#000000##FFFFFF
##5E18751.0011.271.8611.27
#FFFFFF11.271.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003778
Deuteranopia (green-blind)
#173D73
Tritanopia (blue-blind)
#5C2D46
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #5e1875;
/* rgb */ color: rgb(94, 24, 117);
/* oklch */ color: oklch(37.1% 0.154 316.1);
Tailwind
colors: {
  custom: {
    50: '#8f5e9d',
    500: '#5e1875',
    950: '#000000',
  },
}
SCSS
$custom: #5e1875;
$custom-light: #8f5e9d;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1875",
  "rgb": {
    "r": 94,
    "g": 24,
    "b": 117
  },
  "hsl": {
    "h": 285.161,
    "s": 65.957,
    "l": 27.647
  },
  "oklch": {
    "l": 0.37093,
    "c": 0.15446,
    "h": 316.1
  },
  "luminance": 0.04317
}

Semantic roles & 50–950 ramp

primary
#5E1875
secondary
#59AA3F
accent
#E93F69
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D050E
muted
#7E797E

Preview Lab

Preview with #5E1875

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

Preview Lab → · Contrast checker → · Palette generator →

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