#4C137C#4C137C

#4C137C is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.7% C 0.161 H 303.0°. Best body text is #FFFFFF at 12.42:1 contrast (WCAG AA passes).

Color values

HEX#4C137C
RGBrgb(76, 19, 124)
HSLhsl(273, 73%, 28%)
HSVhsv(273, 85%, 49%)
CMYKcmyk(38.7%, 84.7%, 0%, 51.4%)
CIE-LABlab(21.79, 45.19, -47.33)
CIE-LCHlch(21.79, 65.44, 313.68°)
OKLaboklab(34.65% 0.0876 -0.1351)
OKLCHoklch(34.65% 0.161 303)
XYZxyz(6.8506, 3.4575, 19.3713)
Luminance0.0346 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C137C #437C13
analogous
#17137C #4C137C #7C1378
triadic
#4C137C #7C4C13 #137C4C
tetradic
#4C137C #7C1713 #437C13 #13787C
square
#4C137C #7C1713 #437C13 #13787C
split-complementary
#4C137C #787C13 #137C17
monochromatic
#10041B #2B0B47 #4C137C #6D1BB1 #8C2BDF

Accessibility & contrast

On white

12.42
#4C137C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#4C137C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C137C
12.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C137C#FFFFFF#000000##FFFFFF
##4C137C1.0012.421.6912.42
#FFFFFF12.421.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337F
Deuteranopia (green-blind)
#00347A
Tritanopia (blue-blind)
#423149
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #4c137c;
/* rgb */ color: rgb(76, 19, 124);
/* oklch */ color: oklch(34.7% 0.161 303.0);
Tailwind
colors: {
  custom: {
    50: '#8459a3',
    500: '#4c137c',
    950: '#000000',
  },
}
SCSS
$custom: #4c137c;
$custom-light: #8459a3;
$custom-dark: #000000;
JSON
{
  "hex": "#4c137c",
  "rgb": {
    "r": 76,
    "g": 19,
    "b": 124
  },
  "hsl": {
    "h": 272.571,
    "s": 73.427,
    "l": 28.039
  },
  "oklch": {
    "l": 0.34654,
    "c": 0.16106,
    "h": 303
  },
  "luminance": 0.03457
}

Semantic roles & 50–950 ramp

primary
#4C137C
secondary
#70B239
accent
#F0388C
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4C137C

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

Preview Lab → · Contrast checker → · Palette generator →

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