#5C1462#5C1462

#5C1462 is a dark, vivid purple. Relative luminance 0.037; OKLCH L 35.0% C 0.141 H 324.6°. Best body text is #FFFFFF at 12.13:1 contrast (WCAG AA passes).

Color values

HEX#5C1462
RGBrgb(92, 20, 98)
HSLhsl(295, 66%, 23%)
HSVhsv(295, 80%, 38%)
CMYKcmyk(6.1%, 79.6%, 0%, 61.6%)
CIE-LABlab(22.51, 42.28, -29.22)
CIE-LCHlch(22.51, 51.40, 325.35°)
OKLaboklab(35.05% 0.1146 -0.0814)
OKLCHoklch(35.05% 0.141 324.6)
XYZxyz(6.8682, 3.6579, 11.8972)
Luminance0.0366 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C1462 #1A6214
analogous
#351462 #5C1462 #621441
triadic
#5C1462 #625C14 #14625C
tetradic
#5C1462 #623514 #1A6214 #144162
square
#5C1462 #623514 #1A6214 #144162
split-complementary
#5C1462 #416214 #146235
monochromatic
#180519 #2C0A2F #5C1462 #8C1E95 #BB29C8

Accessibility & contrast

On white

12.13
#5C1462 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#5C1462 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C1462
12.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C1462#FFFFFF#000000##FFFFFF
##5C14621.0012.131.7312.13
#FFFFFF12.131.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003064
Deuteranopia (green-blind)
#243960
Tritanopia (blue-blind)
#5E223A
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #5c1462;
/* rgb */ color: rgb(92, 20, 98);
/* oklch */ color: oklch(35.0% 0.141 324.6);
Tailwind
colors: {
  custom: {
    50: '#8d5b8f',
    500: '#5c1462',
    950: '#000000',
  },
}
SCSS
$custom: #5c1462;
$custom-light: #8d5b8f;
$custom-dark: #000000;
JSON
{
  "hex": "#5c1462",
  "rgb": {
    "r": 92,
    "g": 20,
    "b": 98
  },
  "hsl": {
    "h": 295.385,
    "s": 66.102,
    "l": 23.137
  },
  "oklch": {
    "l": 0.35048,
    "c": 0.14062,
    "h": 324.6
  },
  "luminance": 0.03657
}

Semantic roles & 50–950 ramp

primary
#5C1462
secondary
#409938
accent
#E93F4C
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0D040C
muted
#7D797D

Preview Lab

Preview with #5C1462

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

Preview Lab → · Contrast checker → · Palette generator →

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