#4D137B#4D137B

#4D137B is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.7% C 0.160 H 303.9°. Best body text is #FFFFFF at 12.39:1 contrast (WCAG AA passes).

Color values

HEX#4D137B
RGBrgb(77, 19, 123)
HSLhsl(273, 73%, 28%)
HSVhsv(273, 85%, 48%)
CMYKcmyk(37.4%, 84.6%, 0%, 51.8%)
CIE-LABlab(21.85, 45.11, -46.59)
CIE-LCHlch(21.85, 64.85, 314.08°)
OKLaboklab(34.7% 0.0895 -0.1329)
OKLCHoklch(34.7% 0.16 303.9)
XYZxyz(6.8678, 3.4736, 19.0437)
Luminance0.0347 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D137B #417B13
analogous
#19137B #4D137B #7B1375
triadic
#4D137B #7B4D13 #137B4D
tetradic
#4D137B #7B1913 #417B13 #13757B
square
#4D137B #7B1913 #417B13 #13757B
split-complementary
#4D137B #757B13 #137B19
monochromatic
#11041B #2C0B46 #4D137B #6E1BB0 #8F2ADE

Accessibility & contrast

On white

12.39
#4D137B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D137B
12.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D137B#FFFFFF#000000##FFFFFF
##4D137B1.0012.391.6912.39
#FFFFFF12.391.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337E
Deuteranopia (green-blind)
#003479
Tritanopia (blue-blind)
#443048
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #4d137b;
/* rgb */ color: rgb(77, 19, 123);
/* oklch */ color: oklch(34.7% 0.160 303.9);
Tailwind
colors: {
  custom: {
    50: '#8459a2',
    500: '#4d137b',
    950: '#000000',
  },
}
SCSS
$custom: #4d137b;
$custom-light: #8459a2;
$custom-dark: #000000;
JSON
{
  "hex": "#4d137b",
  "rgb": {
    "r": 77,
    "g": 19,
    "b": 123
  },
  "hsl": {
    "h": 273.462,
    "s": 73.239,
    "l": 27.843
  },
  "oklch": {
    "l": 0.34698,
    "c": 0.16026,
    "h": 303.9
  },
  "luminance": 0.03474
}

Semantic roles & 50–950 ramp

primary
#4D137B
secondary
#6EB139
accent
#F03889
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4D137B

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

Preview Lab → · Contrast checker → · Palette generator →

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