#4C137E#4C137E

#4C137E is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.8% C 0.163 H 302.2°. Best body text is #FFFFFF at 12.34:1 contrast (WCAG AA passes).

Color values

HEX#4C137E
RGBrgb(76, 19, 126)
HSLhsl(272, 74%, 28%)
HSVhsv(272, 85%, 49%)
CMYKcmyk(39.7%, 84.9%, 0%, 50.6%)
CIE-LABlab(21.98, 45.68, -48.30)
CIE-LCHlch(21.98, 66.48, 313.40°)
OKLaboklab(34.84% 0.087 -0.138)
OKLCHoklch(34.84% 0.163 302.2)
XYZxyz(6.9783, 3.5086, 20.0442)
Luminance0.0351 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C137E #457E13
analogous
#17137E #4C137E #7E137A
triadic
#4C137E #7E4C13 #137E4C
tetradic
#4C137E #7E1713 #457E13 #137A7E
square
#4C137E #7E1713 #457E13 #137A7E
split-complementary
#4C137E #7A7E13 #137E17
monochromatic
#10041B #2C0B49 #4C137E #6C1BB3 #8C2CDF

Accessibility & contrast

On white

12.34
#4C137E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C137E
12.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C137E#FFFFFF#000000##FFFFFF
##4C137E1.0012.341.7012.34
#FFFFFF12.341.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003481
Deuteranopia (green-blind)
#00347C
Tritanopia (blue-blind)
#41314A
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4c137e;
/* rgb */ color: rgb(76, 19, 126);
/* oklch */ color: oklch(34.8% 0.163 302.2);
Tailwind
colors: {
  custom: {
    50: '#845aa4',
    500: '#4c137e',
    950: '#000000',
  },
}
SCSS
$custom: #4c137e;
$custom-light: #845aa4;
$custom-dark: #000000;
JSON
{
  "hex": "#4c137e",
  "rgb": {
    "r": 76,
    "g": 19,
    "b": 126
  },
  "hsl": {
    "h": 271.963,
    "s": 73.793,
    "l": 28.431
  },
  "oklch": {
    "l": 0.3484,
    "c": 0.1631,
    "h": 302.2
  },
  "luminance": 0.03509
}

Semantic roles & 50–950 ramp

primary
#4C137E
secondary
#72B439
accent
#F0378E
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4C137E

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

Preview Lab → · Contrast checker → · Palette generator →

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