#5E1462#5E1462

#5E1462 is a dark, vivid purple. Relative luminance 0.038; OKLCH L 35.4% C 0.142 H 325.8°. Best body text is #FFFFFF at 11.98:1 contrast (WCAG AA passes).

Color values

HEX#5E1462
RGBrgb(94, 20, 98)
HSLhsl(297, 66%, 23%)
HSVhsv(297, 80%, 38%)
CMYKcmyk(4.1%, 79.6%, 0%, 61.6%)
CIE-LABlab(22.87, 42.75, -28.62)
CIE-LCHlch(22.87, 51.44, 326.19°)
OKLaboklab(35.38% 0.1171 -0.0796)
OKLCHoklch(35.38% 0.142 325.8)
XYZxyz(7.0707, 3.7623, 11.9067)
Luminance0.0376 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1462 #186214
analogous
#371462 #5E1462 #62143F
triadic
#5E1462 #625E14 #14625E
tetradic
#5E1462 #623714 #186214 #143F62
square
#5E1462 #623714 #186214 #143F62
split-complementary
#5E1462 #3F6214 #146237
monochromatic
#180519 #2D0A2F #5E1462 #8F1E95 #C029C8

Accessibility & contrast

On white

11.98
#5E1462 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#5E1462 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1462
11.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1462#FFFFFF#000000##FFFFFF
##5E14621.0011.981.7511.98
#FFFFFF11.981.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003164
Deuteranopia (green-blind)
#263A60
Tritanopia (blue-blind)
#60223A
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #5e1462;
/* rgb */ color: rgb(94, 20, 98);
/* oklch */ color: oklch(35.4% 0.142 325.8);
Tailwind
colors: {
  custom: {
    50: '#8f5b8f',
    500: '#5e1462',
    950: '#000000',
  },
}
SCSS
$custom: #5e1462;
$custom-light: #8f5b8f;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1462",
  "rgb": {
    "r": 94,
    "g": 20,
    "b": 98
  },
  "hsl": {
    "h": 296.923,
    "s": 66.102,
    "l": 23.137
  },
  "oklch": {
    "l": 0.35377,
    "c": 0.14161,
    "h": 325.8
  },
  "luminance": 0.03762
}

Semantic roles & 50–950 ramp

primary
#5E1462
secondary
#3D9938
accent
#E93F47
background
#F9F5F8
surface
#F1E9F0
border
#CBC5CB
text
#0D040C
muted
#7E797D

Preview Lab

Preview with #5E1462

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

Preview Lab → · Contrast checker → · Palette generator →

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