#4D147F#4D147F

#4D147F is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.2% C 0.163 H 302.3°. Best body text is #FFFFFF at 12.20:1 contrast (WCAG AA passes).

Color values

HEX#4D147F
RGBrgb(77, 20, 127)
HSLhsl(272, 73%, 29%)
HSVhsv(272, 84%, 50%)
CMYKcmyk(39.4%, 84.3%, 0%, 50.2%)
CIE-LABlab(22.34, 45.72, -48.33)
CIE-LCHlch(22.34, 66.53, 313.41°)
OKLaboklab(35.15% 0.0874 -0.138)
OKLCHoklch(35.15% 0.163 302.3)
XYZxyz(7.1406, 3.6104, 20.3952)
Luminance0.0361 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D147F #467F14
analogous
#18147F #4D147F #7F147C
triadic
#4D147F #7F4D14 #147F4D
tetradic
#4D147F #7F1814 #467F14 #147C7F
square
#4D147F #7F1814 #467F14 #147C7F
split-complementary
#4D147F #7C7F14 #147F18
monochromatic
#10041A #2D0C4A #4D147F #6D1CB4 #8C2FDE

Accessibility & contrast

On white

12.20
#4D147F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D147F
12.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D147F#FFFFFF#000000##FFFFFF
##4D147F1.0012.201.7212.20
#FFFFFF12.201.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.201.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4d147f;
/* rgb */ color: rgb(77, 20, 127);
/* oklch */ color: oklch(35.2% 0.163 302.3);
Tailwind
colors: {
  custom: {
    50: '#855aa5',
    500: '#4d147f',
    950: '#000000',
  },
}
SCSS
$custom: #4d147f;
$custom-light: #855aa5;
$custom-dark: #000000;
JSON
{
  "hex": "#4d147f",
  "rgb": {
    "r": 77,
    "g": 20,
    "b": 127
  },
  "hsl": {
    "h": 271.963,
    "s": 72.789,
    "l": 28.824
  },
  "oklch": {
    "l": 0.35152,
    "c": 0.16341,
    "h": 302.3
  },
  "luminance": 0.0361
}

Semantic roles & 50–950 ramp

primary
#4D147F
secondary
#73B43B
accent
#EF388E
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #4D147F

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

Preview Lab → · Contrast checker → · Palette generator →

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