#4D1174#4D1174

#4D1174 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.9% C 0.155 H 307.0°. Best body text is #FFFFFF at 12.74:1 contrast (WCAG AA passes).

Color values

HEX#4D1174
RGBrgb(77, 17, 116)
HSLhsl(276, 74%, 26%)
HSVhsv(276, 85%, 45%)
CMYKcmyk(33.6%, 85.3%, 0%, 54.5%)
CIE-LABlab(20.98, 44.16, -43.53)
CIE-LCHlch(20.98, 62.00, 315.41°)
OKLaboklab(33.9% 0.0932 -0.1239)
OKLCHoklch(33.9% 0.155 307)
XYZxyz(6.4127, 3.2397, 16.8071)
Luminance0.0324 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D1174 #387411
analogous
#1C1174 #4D1174 #741169
triadic
#4D1174 #744D11 #11744D
tetradic
#4D1174 #741C11 #387411 #116974
square
#4D1174 #741C11 #387411 #116974
split-complementary
#4D1174 #697411 #11741C
monochromatic
#12041B #2A093F #4D1174 #7019A9 #9421DE

Accessibility & contrast

On white

12.74
#4D1174 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#4D1174 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D1174
12.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D1174#FFFFFF#000000##FFFFFF
##4D11741.0012.741.6512.74
#FFFFFF12.741.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003177
Deuteranopia (green-blind)
#003372
Tritanopia (blue-blind)
#462C44
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #4d1174;
/* rgb */ color: rgb(77, 17, 116);
/* oklch */ color: oklch(33.9% 0.155 307.0);
Tailwind
colors: {
  custom: {
    50: '#84589d',
    500: '#4d1174',
    950: '#000000',
  },
}
SCSS
$custom: #4d1174;
$custom-light: #84589d;
$custom-dark: #000000;
JSON
{
  "hex": "#4d1174",
  "rgb": {
    "r": 77,
    "g": 17,
    "b": 116
  },
  "hsl": {
    "h": 276.364,
    "s": 74.436,
    "l": 26.078
  },
  "oklch": {
    "l": 0.339,
    "c": 0.15507,
    "h": 307
  },
  "luminance": 0.0324
}

Semantic roles & 50–950 ramp

primary
#4D1174
secondary
#64AB36
accent
#F13780
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4D1174

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

Preview Lab → · Contrast checker → · Palette generator →

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