#4C137D#4C137D

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

Color values

HEX#4C137D
RGBrgb(76, 19, 125)
HSLhsl(272, 74%, 28%)
HSVhsv(272, 85%, 49%)
CMYKcmyk(39.2%, 84.8%, 0%, 51%)
CIE-LABlab(21.88, 45.44, -47.82)
CIE-LCHlch(21.88, 65.96, 313.54°)
OKLaboklab(34.75% 0.0873 -0.1366)
OKLCHoklch(34.75% 0.162 302.6)
XYZxyz(6.9141, 3.4829, 19.7061)
Luminance0.0348 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C137D #447D13
analogous
#17137D #4C137D #7D1379
triadic
#4C137D #7D4C13 #137D4C
tetradic
#4C137D #7D1713 #447D13 #13797D
square
#4C137D #7D1713 #447D13 #13797D
split-complementary
#4C137D #797D13 #137D17
monochromatic
#10041B #2C0B48 #4C137D #6C1BB2 #8C2CDF

Accessibility & contrast

On white

12.38
#4C137D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#4C137D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C137D
12.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C137D#FFFFFF#000000##FFFFFF
##4C137D1.0012.381.7012.38
#FFFFFF12.381.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003480
Deuteranopia (green-blind)
#00347B
Tritanopia (blue-blind)
#413149
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #4c137d;
/* rgb */ color: rgb(76, 19, 125);
/* oklch */ color: oklch(34.7% 0.162 302.6);
Tailwind
colors: {
  custom: {
    50: '#8459a4',
    500: '#4c137d',
    950: '#000000',
  },
}
SCSS
$custom: #4c137d;
$custom-light: #8459a4;
$custom-dark: #000000;
JSON
{
  "hex": "#4c137d",
  "rgb": {
    "r": 76,
    "g": 19,
    "b": 125
  },
  "hsl": {
    "h": 272.264,
    "s": 73.611,
    "l": 28.235
  },
  "oklch": {
    "l": 0.34747,
    "c": 0.16208,
    "h": 302.6
  },
  "luminance": 0.03483
}

Semantic roles & 50–950 ramp

primary
#4C137D
secondary
#71B339
accent
#F0388D
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4C137D

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

Preview Lab → · Contrast checker → · Palette generator →

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