#4C137F#4C137F

#4C137F is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.9% C 0.164 H 301.9°. Best body text is #FFFFFF at 12.30:1 contrast (WCAG AA passes).

Color values

HEX#4C137F
RGBrgb(76, 19, 127)
HSLhsl(272, 74%, 29%)
HSVhsv(272, 85%, 50%)
CMYKcmyk(40.2%, 85%, 0%, 50.2%)
CIE-LABlab(22.07, 45.92, -48.78)
CIE-LCHlch(22.07, 67.00, 313.27°)
OKLaboklab(34.93% 0.0866 -0.1394)
OKLCHoklch(34.93% 0.164 301.9)
XYZxyz(7.0432, 3.5345, 20.3857)
Luminance0.0353 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C137F #467F13
analogous
#16137F #4C137F #7F137C
triadic
#4C137F #7F4C13 #137F4C
tetradic
#4C137F #7F1613 #467F13 #137C7F
square
#4C137F #7F1613 #467F13 #137C7F
split-complementary
#4C137F #7C7F13 #137F16
monochromatic
#10041B #2C0B4A #4C137F #6C1BB4 #8B2DE0

Accessibility & contrast

On white

12.30
#4C137F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#4C137F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C137F
12.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C137F#FFFFFF#000000##FFFFFF
##4C137F1.0012.301.7112.30
#FFFFFF12.301.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003482
Deuteranopia (green-blind)
#00347D
Tritanopia (blue-blind)
#41324A
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4c137f;
/* rgb */ color: rgb(76, 19, 127);
/* oklch */ color: oklch(34.9% 0.164 301.9);
Tailwind
colors: {
  custom: {
    50: '#845aa5',
    500: '#4c137f',
    950: '#000000',
  },
}
SCSS
$custom: #4c137f;
$custom-light: #845aa5;
$custom-dark: #000000;
JSON
{
  "hex": "#4c137f",
  "rgb": {
    "r": 76,
    "g": 19,
    "b": 127
  },
  "hsl": {
    "h": 271.667,
    "s": 73.973,
    "l": 28.627
  },
  "oklch": {
    "l": 0.34933,
    "c": 0.16412,
    "h": 301.9
  },
  "luminance": 0.03535
}

Semantic roles & 50–950 ramp

primary
#4C137F
secondary
#73B439
accent
#F1378F
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4C137F

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

Preview Lab → · Contrast checker → · Palette generator →

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