#5E1868#5E1868

#5E1868 is a dark, vivid purple. Relative luminance 0.040; OKLCH L 36.2% C 0.142 H 322.4°. Best body text is #FFFFFF at 11.63:1 contrast (WCAG AA passes).

Color values

HEX#5E1868
RGBrgb(94, 24, 104)
HSLhsl(293, 63%, 25%)
HSVhsv(293, 77%, 41%)
CMYKcmyk(9.6%, 76.9%, 0%, 59.2%)
CIE-LABlab(23.78, 42.43, -31.09)
CIE-LCHlch(23.78, 52.61, 323.77°)
OKLaboklab(36.15% 0.1127 -0.0869)
OKLCHoklch(36.15% 0.142 322.4)
XYZxyz(7.4412, 4.0329, 13.4805)
Luminance0.0403 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1868 #226818
analogous
#361868 #5E1868 #68184A
triadic
#5E1868 #685E18 #18685E
tetradic
#5E1868 #683618 #226818 #184A68
square
#5E1868 #683618 #226818 #184A68
split-complementary
#5E1868 #4A6818 #186836
monochromatic
#160619 #310D36 #5E1868 #8B239A #B82FCB

Accessibility & contrast

On white

11.63
#5E1868 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#5E1868 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1868
11.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1868#FFFFFF#000000##FFFFFF
##5E18681.0011.631.8111.63
#FFFFFF11.631.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00346A
Deuteranopia (green-blind)
#243B66
Tritanopia (blue-blind)
#5F273E
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #5e1868;
/* rgb */ color: rgb(94, 24, 104);
/* oklch */ color: oklch(36.2% 0.142 322.4);
Tailwind
colors: {
  custom: {
    50: '#8f5d93',
    500: '#5e1868',
    950: '#000000',
  },
}
SCSS
$custom: #5e1868;
$custom-light: #8f5d93;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1868",
  "rgb": {
    "r": 94,
    "g": 24,
    "b": 104
  },
  "hsl": {
    "h": 292.5,
    "s": 62.5,
    "l": 25.098
  },
  "oklch": {
    "l": 0.36152,
    "c": 0.14232,
    "h": 322.4
  },
  "luminance": 0.04032
}

Semantic roles & 50–950 ramp

primary
#5E1868
secondary
#4A9E3E
accent
#E64257
background
#F9F5F9
surface
#F1E9F1
border
#CBC5CB
text
#0D050D
muted
#7E797E

Preview Lab

Preview with #5E1868

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

Preview Lab → · Contrast checker → · Palette generator →

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