#4D137A#4D137A

#4D137A is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.6% C 0.159 H 304.3°. Best body text is #FFFFFF at 12.43:1 contrast (WCAG AA passes).

Color values

HEX#4D137A
RGBrgb(77, 19, 122)
HSLhsl(274, 73%, 28%)
HSVhsv(274, 84%, 48%)
CMYKcmyk(36.9%, 84.4%, 0%, 52.2%)
CIE-LABlab(21.76, 44.87, -46.10)
CIE-LCHlch(21.76, 64.33, 314.23°)
OKLaboklab(34.61% 0.0898 -0.1315)
OKLCHoklch(34.61% 0.159 304.3)
XYZxyz(6.8055, 3.4487, 18.7157)
Luminance0.0345 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D137A #407A13
analogous
#19137A #4D137A #7A1374
triadic
#4D137A #7A4D13 #137A4D
tetradic
#4D137A #7A1913 #407A13 #13747A
square
#4D137A #7A1913 #407A13 #13747A
split-complementary
#4D137A #747A13 #137A19
monochromatic
#11041A #2C0B45 #4D137A #6E1BAF #8F2ADE

Accessibility & contrast

On white

12.43
#4D137A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D137A
12.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D137A#FFFFFF#000000##FFFFFF
##4D137A1.0012.431.6912.43
#FFFFFF12.431.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337D
Deuteranopia (green-blind)
#003478
Tritanopia (blue-blind)
#442F48
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #4d137a;
/* rgb */ color: rgb(77, 19, 122);
/* oklch */ color: oklch(34.6% 0.159 304.3);
Tailwind
colors: {
  custom: {
    50: '#8459a1',
    500: '#4d137a',
    950: '#000000',
  },
}
SCSS
$custom: #4d137a;
$custom-light: #8459a1;
$custom-dark: #000000;
JSON
{
  "hex": "#4d137a",
  "rgb": {
    "r": 77,
    "g": 19,
    "b": 122
  },
  "hsl": {
    "h": 273.786,
    "s": 73.05,
    "l": 27.647
  },
  "oklch": {
    "l": 0.34608,
    "c": 0.15925,
    "h": 304.3
  },
  "luminance": 0.03449
}

Semantic roles & 50–950 ramp

primary
#4D137A
secondary
#6DB039
accent
#F03888
background
#F8F5FA
surface
#F0E9F3
border
#CBC5CD
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4D137A

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

Preview Lab → · Contrast checker → · Palette generator →

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