#4C148D#4C148D

#4C148D is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.4% C 0.178 H 297.1°. Best body text is #FFFFFF at 11.72:1 contrast (WCAG AA passes).

Color values

HEX#4C148D
RGBrgb(76, 20, 141)
HSLhsl(268, 75%, 32%)
HSVhsv(268, 86%, 55%)
CMYKcmyk(46.1%, 85.8%, 0%, 44.7%)
CIE-LABlab(23.54, 49.04, -55.17)
CIE-LCHlch(23.54, 73.81, 311.63°)
OKLaboklab(36.36% 0.0809 -0.1581)
OKLCHoklch(36.36% 0.178 297.1)
XYZxyz(8.0371, 3.9597, 25.5350)
Luminance0.0396 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C148D #558D14
analogous
#14188D #4C148D #89148D
triadic
#4C148D #8D4C14 #148D4C
tetradic
#4C148D #8D1418 #558D14 #148D89
square
#4C148D #8D1418 #558D14 #148D89
split-complementary
#4C148D #8D8914 #188D14
monochromatic
#120522 #2F0C57 #4C148D #691CC3 #8739E3

Accessibility & contrast

On white

11.72
#4C148D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#4C148D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C148D
11.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C148D#FFFFFF#000000##FFFFFF
##4C148D1.0011.721.7911.72
#FFFFFF11.721.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003890
Deuteranopia (green-blind)
#00378B
Tritanopia (blue-blind)
#3A3853
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4c148d;
/* rgb */ color: rgb(76, 20, 141);
/* oklch */ color: oklch(36.4% 0.178 297.1);
Tailwind
colors: {
  custom: {
    50: '#865baf',
    500: '#4c148d',
    950: '#000000',
  },
}
SCSS
$custom: #4c148d;
$custom-light: #865baf;
$custom-dark: #000000;
JSON
{
  "hex": "#4c148d",
  "rgb": {
    "r": 76,
    "g": 20,
    "b": 141
  },
  "hsl": {
    "h": 267.769,
    "s": 75.155,
    "l": 31.569
  },
  "oklch": {
    "l": 0.36358,
    "c": 0.17762,
    "h": 297.1
  },
  "luminance": 0.0396
}

Semantic roles & 50–950 ramp

primary
#4C148D
secondary
#83C13C
accent
#F2369B
background
#F8F5FA
surface
#F0E9F5
border
#CBC5CF
text
#0C0411
muted
#7D7980

Preview Lab

Preview with #4C148D

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

Preview Lab → · Contrast checker → · Palette generator →

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