#5C149E#5C149E

#5C149E is a dark, vivid violet. Relative luminance 0.052; OKLCH L 40.0% C 0.197 H 300.5°. Best body text is #FFFFFF at 10.25:1 contrast (WCAG AA passes).

Color values

HEX#5C149E
RGBrgb(92, 20, 158)
HSLhsl(271, 78%, 35%)
HSVhsv(271, 87%, 62%)
CMYKcmyk(41.8%, 87.3%, 0%, 38%)
CIE-LABlab(27.42, 55.28, -59.19)
CIE-LCHlch(27.42, 80.99, 313.04°)
OKLaboklab(40.01% 0.0997 -0.1694)
OKLCHoklch(40.01% 0.197 300.5)
XYZxyz(10.8338, 5.2441, 32.7826)
Luminance0.0524 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C149E #569E14
analogous
#17149E #5C149E #9E149B
triadic
#5C149E #9E5C14 #149E5C
tetradic
#5C149E #9E1714 #569E14 #149B9E
square
#5C149E #9E1714 #569E14 #149B9E
split-complementary
#5C149E #9B9E14 #149E17
monochromatic
#1D0631 #3C0D68 #5C149E #7C1BD4 #9A45E7

Accessibility & contrast

On white

10.25
#5C149E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#5C149E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C149E
10.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C149E#FFFFFF#000000##FFFFFF
##5C149E1.0010.252.0510.25
#FFFFFF10.251.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040A2
Deuteranopia (green-blind)
#00409C
Tritanopia (blue-blind)
#4C3E5D
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5c149e;
/* rgb */ color: rgb(92, 20, 158);
/* oklch */ color: oklch(40.0% 0.197 300.5);
Tailwind
colors: {
  custom: {
    50: '#915ebc',
    500: '#5c149e',
    950: '#000000',
  },
}
SCSS
$custom: #5c149e;
$custom-light: #915ebc;
$custom-dark: #000000;
JSON
{
  "hex": "#5c149e",
  "rgb": {
    "r": 92,
    "g": 20,
    "b": 158
  },
  "hsl": {
    "h": 271.304,
    "s": 77.528,
    "l": 34.902
  },
  "oklch": {
    "l": 0.40005,
    "c": 0.19653,
    "h": 300.5
  },
  "luminance": 0.05244
}

Semantic roles & 50–950 ramp

primary
#5C149E
secondary
#84C846
accent
#F43490
background
#F9F5FB
surface
#F2EAF6
border
#CCC6D0
text
#0E0512
muted
#7E7981

Preview Lab

Preview with #5C149E

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

Preview Lab → · Contrast checker → · Palette generator →

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