#4D117D#4D117D

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

Color values

HEX#4D117D
RGBrgb(77, 17, 125)
HSLhsl(273, 76%, 28%)
HSVhsv(273, 86%, 49%)
CMYKcmyk(38.4%, 86.4%, 0%, 51%)
CIE-LABlab(21.80, 46.28, -47.95)
CIE-LCHlch(21.80, 66.64, 313.99°)
OKLaboklab(34.72% 0.0903 -0.1369)
OKLCHoklch(34.72% 0.164 303.4)
XYZxyz(6.9618, 3.4593, 19.6990)
Luminance0.0346 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D117D #417D11
analogous
#17117D #4D117D #7D1177
triadic
#4D117D #7D4D11 #117D4D
tetradic
#4D117D #7D1711 #417D11 #11777D
square
#4D117D #7D1711 #417D11 #11777D
split-complementary
#4D117D #777D11 #117D17
monochromatic
#11041B #2C0A47 #4D117D #6E18B3 #8F27E2

Accessibility & contrast

On white

12.41
#4D117D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D117D
12.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D117D#FFFFFF#000000##FFFFFF
##4D117D1.0012.411.6912.41
#FFFFFF12.411.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003380
Deuteranopia (green-blind)
#00347B
Tritanopia (blue-blind)
#433049
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #4d117d;
/* rgb */ color: rgb(77, 17, 125);
/* oklch */ color: oklch(34.7% 0.164 303.4);
Tailwind
colors: {
  custom: {
    50: '#8459a4',
    500: '#4d117d',
    950: '#000000',
  },
}
SCSS
$custom: #4d117d;
$custom-light: #8459a4;
$custom-dark: #000000;
JSON
{
  "hex": "#4d117d",
  "rgb": {
    "r": 77,
    "g": 17,
    "b": 125
  },
  "hsl": {
    "h": 273.333,
    "s": 76.056,
    "l": 27.843
  },
  "oklch": {
    "l": 0.34719,
    "c": 0.164,
    "h": 303.4
  },
  "luminance": 0.03459
}

Semantic roles & 50–950 ramp

primary
#4D117D
secondary
#6EB337
accent
#F33589
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #4D117D

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

Preview Lab → · Contrast checker → · Palette generator →

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