#5C148D#5C148D

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

Color values

HEX#5C148D
RGBrgb(92, 20, 141)
HSLhsl(276, 75%, 32%)
HSVhsv(276, 86%, 55%)
CMYKcmyk(34.8%, 85.8%, 0%, 44.7%)
CIE-LABlab(25.86, 51.37, -51.27)
CIE-LCHlch(25.86, 72.58, 315.06°)
OKLaboklab(38.45% 0.1057 -0.1461)
OKLCHoklch(38.45% 0.18 305.9)
XYZxyz(9.4704, 4.6988, 25.6022)
Luminance0.0470 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C148D #458D14
analogous
#1F148D #5C148D #8D1482
triadic
#5C148D #8D5C14 #148D5C
tetradic
#5C148D #8D1F14 #458D14 #14828D
square
#5C148D #8D1F14 #458D14 #14828D
split-complementary
#5C148D #828D14 #148D1F
monochromatic
#160522 #390C57 #5C148D #7F1CC3 #9E39E3

Accessibility & contrast

On white

10.83
#5C148D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#5C148D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C148D
10.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C148D#FFFFFF#000000##FFFFFF
##5C148D1.0010.831.9410.83
#FFFFFF10.831.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B90
Deuteranopia (green-blind)
#003D8B
Tritanopia (blue-blind)
#533653
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5c148d;
/* rgb */ color: rgb(92, 20, 141);
/* oklch */ color: oklch(38.5% 0.180 305.9);
Tailwind
colors: {
  custom: {
    50: '#905daf',
    500: '#5c148d',
    950: '#000000',
  },
}
SCSS
$custom: #5c148d;
$custom-light: #905daf;
$custom-dark: #000000;
JSON
{
  "hex": "#5c148d",
  "rgb": {
    "r": 92,
    "g": 20,
    "b": 141
  },
  "hsl": {
    "h": 275.702,
    "s": 75.155,
    "l": 31.569
  },
  "oklch": {
    "l": 0.38452,
    "c": 0.18037,
    "h": 305.9
  },
  "luminance": 0.04699
}

Semantic roles & 50–950 ramp

primary
#5C148D
secondary
#72C13C
accent
#F23682
background
#F9F5FA
surface
#F2E9F5
border
#CCC5CF
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5C148D

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

Preview Lab → · Contrast checker → · Palette generator →

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