#5C148E#5C148E

#5C148E is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.5% C 0.181 H 305.5°. Best body text is #FFFFFF at 10.79:1 contrast (WCAG AA passes).

Color values

HEX#5C148E
RGBrgb(92, 20, 142)
HSLhsl(275, 75%, 32%)
HSVhsv(275, 86%, 56%)
CMYKcmyk(35.2%, 85.9%, 0%, 44.3%)
CIE-LABlab(25.95, 51.60, -51.75)
CIE-LCHlch(25.95, 73.08, 314.92°)
OKLaboklab(38.54% 0.1054 -0.1475)
OKLCHoklch(38.54% 0.181 305.5)
XYZxyz(9.5452, 4.7287, 25.9958)
Luminance0.0473 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C148E #468E14
analogous
#1F148E #5C148E #8E1483
triadic
#5C148E #8E5C14 #148E5C
tetradic
#5C148E #8E1F14 #468E14 #14838E
square
#5C148E #8E1F14 #468E14 #14838E
split-complementary
#5C148E #838E14 #148E1F
monochromatic
#160523 #390C58 #5C148E #7F1CC4 #9E39E3

Accessibility & contrast

On white

10.79
#5C148E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#5C148E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C148E
10.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C148E#FFFFFF#000000##FFFFFF
##5C148E1.0010.791.9510.79
#FFFFFF10.791.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C91
Deuteranopia (green-blind)
#003E8C
Tritanopia (blue-blind)
#533753
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5c148e;
/* rgb */ color: rgb(92, 20, 142);
/* oklch */ color: oklch(38.5% 0.181 305.5);
Tailwind
colors: {
  custom: {
    50: '#905db0',
    500: '#5c148e',
    950: '#000000',
  },
}
SCSS
$custom: #5c148e;
$custom-light: #905db0;
$custom-dark: #000000;
JSON
{
  "hex": "#5c148e",
  "rgb": {
    "r": 92,
    "g": 20,
    "b": 142
  },
  "hsl": {
    "h": 275.41,
    "s": 75.309,
    "l": 31.765
  },
  "oklch": {
    "l": 0.3854,
    "c": 0.18132,
    "h": 305.5
  },
  "luminance": 0.04729
}

Semantic roles & 50–950 ramp

primary
#5C148E
secondary
#73C23C
accent
#F23683
background
#F9F5FA
surface
#F2E9F5
border
#CCC5CF
text
#0D0511
muted
#7E7980

Preview Lab

Preview with #5C148E

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

Preview Lab → · Contrast checker → · Palette generator →

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