#5E1B68#5E1B68

#5E1B68 is a dark, vivid purple. Relative luminance 0.042; OKLCH L 36.5% C 0.139 H 322.2°. Best body text is #FFFFFF at 11.46:1 contrast (WCAG AA passes).

Color values

HEX#5E1B68
RGBrgb(94, 27, 104)
HSLhsl(292, 59%, 26%)
HSVhsv(292, 74%, 41%)
CMYKcmyk(9.6%, 74%, 0%, 59.2%)
CIE-LABlab(24.20, 41.23, -30.42)
CIE-LCHlch(24.20, 51.23, 323.58°)
OKLaboklab(36.46% 0.1095 -0.0849)
OKLCHoklch(36.46% 0.139 322.2)
XYZxyz(7.5065, 4.1634, 13.5023)
Luminance0.0416 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1B68 #25681B
analogous
#371B68 #5E1B68 #681B4B
triadic
#5E1B68 #685E1B #1B685E
tetradic
#5E1B68 #68371B #25681B #1B4B68
square
#5E1B68 #68371B #25681B #1B4B68
split-complementary
#5E1B68 #4B681B #1B6837
monochromatic
#160618 #320E37 #5E1B68 #8A2899 #B634C9

Accessibility & contrast

On white

11.46
#5E1B68 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#5E1B68 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1B68
11.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1B68#FFFFFF#000000##FFFFFF
##5E1B681.0011.461.8311.46
#FFFFFF11.461.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#01356A
Deuteranopia (green-blind)
#263C66
Tritanopia (blue-blind)
#5F293F
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5e1b68;
/* rgb */ color: rgb(94, 27, 104);
/* oklch */ color: oklch(36.5% 0.139 322.2);
Tailwind
colors: {
  custom: {
    50: '#8e5e93',
    500: '#5e1b68',
    950: '#000000',
  },
}
SCSS
$custom: #5e1b68;
$custom-light: #8e5e93;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1b68",
  "rgb": {
    "r": 94,
    "g": 27,
    "b": 104
  },
  "hsl": {
    "h": 292.208,
    "s": 58.779,
    "l": 25.686
  },
  "oklch": {
    "l": 0.36456,
    "c": 0.13853,
    "h": 322.2
  },
  "luminance": 0.04163
}

Semantic roles & 50–950 ramp

primary
#5E1B68
secondary
#4D9D42
accent
#E2465A
background
#F9F5F9
surface
#F1E9F1
border
#CBC5CB
text
#0D050D
muted
#7E797E

Preview Lab

Preview with #5E1B68

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

Preview Lab → · Contrast checker → · Palette generator →

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