#4D137F#4D137F

#4D137F is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.1% C 0.164 H 302.5°. Best body text is #FFFFFF at 12.24:1 contrast (WCAG AA passes).

Color values

HEX#4D137F
RGBrgb(77, 19, 127)
HSLhsl(272, 74%, 29%)
HSVhsv(272, 85%, 50%)
CMYKcmyk(39.4%, 85%, 0%, 50.2%)
CIE-LABlab(22.22, 46.08, -48.53)
CIE-LCHlch(22.22, 66.92, 313.52°)
OKLaboklab(35.07% 0.0882 -0.1386)
OKLCHoklch(35.07% 0.164 302.5)
XYZxyz(7.1233, 3.5758, 20.3895)
Luminance0.0358 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D137F #457F13
analogous
#17137F #4D137F #7F137B
triadic
#4D137F #7F4D13 #137F4D
tetradic
#4D137F #7F1713 #457F13 #137B7F
square
#4D137F #7F1713 #457F13 #137B7F
split-complementary
#4D137F #7B7F13 #137F17
monochromatic
#10041B #2D0B4A #4D137F #6D1BB4 #8D2DE0

Accessibility & contrast

On white

12.24
#4D137F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#4D137F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D137F
12.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D137F#FFFFFF#000000##FFFFFF
##4D137F1.0012.241.7212.24
#FFFFFF12.241.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.241.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4d137f;
/* rgb */ color: rgb(77, 19, 127);
/* oklch */ color: oklch(35.1% 0.164 302.5);
Tailwind
colors: {
  custom: {
    50: '#855aa5',
    500: '#4d137f',
    950: '#000000',
  },
}
SCSS
$custom: #4d137f;
$custom-light: #855aa5;
$custom-dark: #000000;
JSON
{
  "hex": "#4d137f",
  "rgb": {
    "r": 77,
    "g": 19,
    "b": 127
  },
  "hsl": {
    "h": 272.222,
    "s": 73.973,
    "l": 28.627
  },
  "oklch": {
    "l": 0.35067,
    "c": 0.1643,
    "h": 302.5
  },
  "luminance": 0.03576
}

Semantic roles & 50–950 ramp

primary
#4D137F
secondary
#72B439
accent
#F1378D
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #4D137F

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

Preview Lab → · Contrast checker → · Palette generator →

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