#4D137D#4D137D

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

Color values

HEX#4D137D
RGBrgb(77, 19, 125)
HSLhsl(273, 74%, 28%)
HSVhsv(273, 85%, 49%)
CMYKcmyk(38.4%, 84.8%, 0%, 51%)
CIE-LABlab(22.03, 45.60, -47.57)
CIE-LCHlch(22.03, 65.89, 313.79°)
OKLaboklab(34.88% 0.0889 -0.1358)
OKLCHoklch(34.88% 0.162 303.2)
XYZxyz(6.9942, 3.5242, 19.7098)
Luminance0.0352 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D137D #437D13
analogous
#18137D #4D137D #7D1378
triadic
#4D137D #7D4D13 #137D4D
tetradic
#4D137D #7D1813 #437D13 #13787D
square
#4D137D #7D1813 #437D13 #13787D
split-complementary
#4D137D #787D13 #137D18
monochromatic
#10041B #2C0B48 #4D137D #6E1BB2 #8E2CDF

Accessibility & contrast

On white

12.32
#4D137D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D137D
12.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D137D#FFFFFF#000000##FFFFFF
##4D137D1.0012.321.7012.32
#FFFFFF12.321.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.321.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4d137d;
/* rgb */ color: rgb(77, 19, 125);
/* oklch */ color: oklch(34.9% 0.162 303.2);
Tailwind
colors: {
  custom: {
    50: '#845aa4',
    500: '#4d137d',
    950: '#000000',
  },
}
SCSS
$custom: #4d137d;
$custom-light: #845aa4;
$custom-dark: #000000;
JSON
{
  "hex": "#4d137d",
  "rgb": {
    "r": 77,
    "g": 19,
    "b": 125
  },
  "hsl": {
    "h": 272.83,
    "s": 73.611,
    "l": 28.235
  },
  "oklch": {
    "l": 0.34882,
    "c": 0.16228,
    "h": 303.2
  },
  "luminance": 0.03524
}

Semantic roles & 50–950 ramp

primary
#4D137D
secondary
#70B339
accent
#F0388B
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #4D137D

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

Preview Lab → · Contrast checker → · Palette generator →

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