#4D137C#4D137C

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

Color values

HEX#4D137C
RGBrgb(77, 19, 124)
HSLhsl(273, 73%, 28%)
HSVhsv(273, 85%, 49%)
CMYKcmyk(37.9%, 84.7%, 0%, 51.4%)
CIE-LABlab(21.94, 45.35, -47.08)
CIE-LCHlch(21.94, 65.37, 313.93°)
OKLaboklab(34.79% 0.0892 -0.1344)
OKLCHoklch(34.79% 0.161 303.6)
XYZxyz(6.9307, 3.4988, 19.3751)
Luminance0.0350 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D137C #427C13
analogous
#18137C #4D137C #7C1376
triadic
#4D137C #7C4D13 #137C4D
tetradic
#4D137C #7C1813 #427C13 #13767C
square
#4D137C #7C1813 #427C13 #13767C
split-complementary
#4D137C #767C13 #137C18
monochromatic
#10041B #2C0B47 #4D137C #6E1BB1 #8E2BDF

Accessibility & contrast

On white

12.35
#4D137C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D137C
12.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D137C#FFFFFF#000000##FFFFFF
##4D137C1.0012.351.7012.35
#FFFFFF12.351.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337F
Deuteranopia (green-blind)
#00347A
Tritanopia (blue-blind)
#433049
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4d137c;
/* rgb */ color: rgb(77, 19, 124);
/* oklch */ color: oklch(34.8% 0.161 303.6);
Tailwind
colors: {
  custom: {
    50: '#845aa3',
    500: '#4d137c',
    950: '#000000',
  },
}
SCSS
$custom: #4d137c;
$custom-light: #845aa3;
$custom-dark: #000000;
JSON
{
  "hex": "#4d137c",
  "rgb": {
    "r": 77,
    "g": 19,
    "b": 124
  },
  "hsl": {
    "h": 273.143,
    "s": 73.427,
    "l": 28.039
  },
  "oklch": {
    "l": 0.3479,
    "c": 0.16127,
    "h": 303.6
  },
  "luminance": 0.03499
}

Semantic roles & 50–950 ramp

primary
#4D137C
secondary
#6FB239
accent
#F0388A
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4D137C

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

Preview Lab → · Contrast checker → · Palette generator →

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