#4D137E#4D137E

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

Color values

HEX#4D137E
RGBrgb(77, 19, 126)
HSLhsl(273, 74%, 28%)
HSVhsv(273, 85%, 49%)
CMYKcmyk(38.9%, 84.9%, 0%, 50.6%)
CIE-LABlab(22.12, 45.84, -48.05)
CIE-LCHlch(22.12, 66.41, 313.65°)
OKLaboklab(34.97% 0.0885 -0.1372)
OKLCHoklch(34.97% 0.163 302.8)
XYZxyz(7.0584, 3.5499, 20.0479)
Luminance0.0355 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D137E #447E13
analogous
#17137E #4D137E #7E1379
triadic
#4D137E #7E4D13 #137E4D
tetradic
#4D137E #7E1713 #447E13 #13797E
square
#4D137E #7E1713 #447E13 #13797E
split-complementary
#4D137E #797E13 #137E17
monochromatic
#10041B #2C0B49 #4D137E #6D1BB3 #8D2CDF

Accessibility & contrast

On white

12.28
#4D137E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D137E
12.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D137E#FFFFFF#000000##FFFFFF
##4D137E1.0012.281.7112.28
#FFFFFF12.281.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.281.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4d137e;
/* rgb */ color: rgb(77, 19, 126);
/* oklch */ color: oklch(35.0% 0.163 302.8);
Tailwind
colors: {
  custom: {
    50: '#845aa4',
    500: '#4d137e',
    950: '#000000',
  },
}
SCSS
$custom: #4d137e;
$custom-light: #845aa4;
$custom-dark: #000000;
JSON
{
  "hex": "#4d137e",
  "rgb": {
    "r": 77,
    "g": 19,
    "b": 126
  },
  "hsl": {
    "h": 272.523,
    "s": 73.793,
    "l": 28.431
  },
  "oklch": {
    "l": 0.34974,
    "c": 0.16329,
    "h": 302.8
  },
  "luminance": 0.0355
}

Semantic roles & 50–950 ramp

primary
#4D137E
secondary
#71B439
accent
#F0378C
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #4D137E

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

Preview Lab → · Contrast checker → · Palette generator →

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