#5C195E#5C195E

#5C195E is a dark, vivid purple. Relative luminance 0.038; OKLCH L 35.3% C 0.131 H 326.7°. Best body text is #FFFFFF at 11.96:1 contrast (WCAG AA passes).

Color values

HEX#5C195E
RGBrgb(92, 25, 94)
HSLhsl(298, 58%, 23%)
HSVhsv(298, 73%, 37%)
CMYKcmyk(2.1%, 73.4%, 0%, 63.1%)
CIE-LABlab(22.93, 39.59, -25.92)
CIE-LCHlch(22.93, 47.32, 326.79°)
OKLaboklab(35.27% 0.1094 -0.0719)
OKLCHoklch(35.27% 0.131 326.7)
XYZxyz(6.7815, 3.7792, 10.9598)
Luminance0.0378 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C195E #1B5E19
analogous
#39195E #5C195E #5E193D
triadic
#5C195E #5E5C19 #195E5C
tetradic
#5C195E #5E3919 #1B5E19 #193D5E
square
#5C195E #5E3919 #1B5E19 #193D5E
split-complementary
#5C195E #3D5E19 #195E39
monochromatic
#180618 #2D0C2E #5C195E #8B268E #BB33BF

Accessibility & contrast

On white

11.96
#5C195E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#5C195E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C195E
11.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C195E#FFFFFF#000000##FFFFFF
##5C195E1.0011.961.7611.96
#FFFFFF11.961.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C3160
Deuteranopia (green-blind)
#293A5C
Tritanopia (blue-blind)
#5F2339
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #5c195e;
/* rgb */ color: rgb(92, 25, 94);
/* oklch */ color: oklch(35.3% 0.131 326.7);
Tailwind
colors: {
  custom: {
    50: '#8d5d8c',
    500: '#5c195e',
    950: '#000000',
  },
}
SCSS
$custom: #5c195e;
$custom-light: #8d5d8c;
$custom-dark: #000000;
JSON
{
  "hex": "#5c195e",
  "rgb": {
    "r": 92,
    "g": 25,
    "b": 94
  },
  "hsl": {
    "h": 298.261,
    "s": 57.983,
    "l": 23.333
  },
  "oklch": {
    "l": 0.35266,
    "c": 0.13087,
    "h": 326.7
  },
  "luminance": 0.03779
}

Semantic roles & 50–950 ramp

primary
#5C195E
secondary
#41943F
accent
#E1474B
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040C
muted
#7D797D

Preview Lab

Preview with #5C195E

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

Preview Lab → · Contrast checker → · Palette generator →

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