#5C148F#5C148F

#5C148F is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.6% C 0.182 H 305.2°. Best body text is #FFFFFF at 10.76:1 contrast (WCAG AA passes).

Color values

HEX#5C148F
RGBrgb(92, 20, 143)
HSLhsl(275, 75%, 32%)
HSVhsv(275, 86%, 56%)
CMYKcmyk(35.7%, 86%, 0%, 43.9%)
CIE-LABlab(26.04, 51.83, -52.23)
CIE-LCHlch(26.04, 73.58, 314.78°)
OKLaboklab(38.63% 0.1051 -0.1489)
OKLCHoklch(38.63% 0.182 305.2)
XYZxyz(9.6206, 4.7589, 26.3930)
Luminance0.0476 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C148F #478F14
analogous
#1F148F #5C148F #8F1485
triadic
#5C148F #8F5C14 #148F5C
tetradic
#5C148F #8F1F14 #478F14 #14858F
square
#5C148F #8F1F14 #478F14 #14858F
split-complementary
#5C148F #858F14 #148F1F
monochromatic
#170524 #390C59 #5C148F #7F1CC5 #9D3AE3

Accessibility & contrast

On white

10.76
#5C148F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5C148F
10.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C148F#FFFFFF#000000##FFFFFF
##5C148F1.0010.761.9510.76
#FFFFFF10.761.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C92
Deuteranopia (green-blind)
#003E8D
Tritanopia (blue-blind)
#523754
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5c148f;
/* rgb */ color: rgb(92, 20, 143);
/* oklch */ color: oklch(38.6% 0.182 305.2);
Tailwind
colors: {
  custom: {
    50: '#905db1',
    500: '#5c148f',
    950: '#000000',
  },
}
SCSS
$custom: #5c148f;
$custom-light: #905db1;
$custom-dark: #000000;
JSON
{
  "hex": "#5c148f",
  "rgb": {
    "r": 92,
    "g": 20,
    "b": 143
  },
  "hsl": {
    "h": 275.122,
    "s": 75.46,
    "l": 31.961
  },
  "oklch": {
    "l": 0.38629,
    "c": 0.18227,
    "h": 305.2
  },
  "luminance": 0.04759
}

Semantic roles & 50–950 ramp

primary
#5C148F
secondary
#74C33C
accent
#F23684
background
#F9F5FB
surface
#F2E9F6
border
#CCC5D0
text
#0D0511
muted
#7E7980

Preview Lab

Preview with #5C148F

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

Preview Lab → · Contrast checker → · Palette generator →

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