#5C145E#5C145E

#5C145E is a dark, vivid purple. Relative luminance 0.036; OKLCH L 34.8% C 0.137 H 326.9°. Best body text is #FFFFFF at 12.23:1 contrast (WCAG AA passes).

Color values

HEX#5C145E
RGBrgb(92, 20, 94)
HSLhsl(298, 65%, 22%)
HSVhsv(298, 79%, 37%)
CMYKcmyk(2.1%, 78.7%, 0%, 63.1%)
CIE-LABlab(22.25, 41.53, -27.00)
CIE-LCHlch(22.25, 49.53, 326.97°)
OKLaboklab(34.78% 0.1148 -0.075)
OKLCHoklch(34.78% 0.137 326.9)
XYZxyz(6.6841, 3.5842, 10.9273)
Luminance0.0358 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C145E #165E14
analogous
#37145E #5C145E #5E143B
triadic
#5C145E #5E5C14 #145E5C
tetradic
#5C145E #5E3714 #165E14 #143B5E
square
#5C145E #5E3714 #165E14 #143B5E
split-complementary
#5C145E #3B5E14 #145E37
monochromatic
#190519 #2B092C #5C145E #8D1F90 #BF29C3

Accessibility & contrast

On white

12.23
#5C145E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#5C145E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C145E
12.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C145E#FFFFFF#000000##FFFFFF
##5C145E1.0012.231.7212.23
#FFFFFF12.231.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#022F60
Deuteranopia (green-blind)
#26385C
Tritanopia (blue-blind)
#5F2038
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5c145e;
/* rgb */ color: rgb(92, 20, 94);
/* oklch */ color: oklch(34.8% 0.137 326.9);
Tailwind
colors: {
  custom: {
    50: '#8d5b8c',
    500: '#5c145e',
    950: '#000000',
  },
}
SCSS
$custom: #5c145e;
$custom-light: #8d5b8c;
$custom-dark: #000000;
JSON
{
  "hex": "#5c145e",
  "rgb": {
    "r": 92,
    "g": 20,
    "b": 94
  },
  "hsl": {
    "h": 298.378,
    "s": 64.912,
    "l": 22.353
  },
  "oklch": {
    "l": 0.34778,
    "c": 0.13711,
    "h": 326.9
  },
  "luminance": 0.03584
}

Semantic roles & 50–950 ramp

primary
#5C145E
secondary
#3B9638
accent
#E84044
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040C
muted
#7D797D

Preview Lab

Preview with #5C145E

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

Preview Lab → · Contrast checker → · Palette generator →

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