#4D147D#4D147D

#4D147D is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.0% C 0.161 H 303.1°. Best body text is #FFFFFF at 12.27:1 contrast (WCAG AA passes).

Color values

HEX#4D147D
RGBrgb(77, 20, 125)
HSLhsl(273, 72%, 28%)
HSVhsv(273, 84%, 49%)
CMYKcmyk(38.4%, 84%, 0%, 51%)
CIE-LABlab(22.16, 45.23, -47.36)
CIE-LCHlch(22.16, 65.49, 313.68°)
OKLaboklab(34.97% 0.0881 -0.1352)
OKLCHoklch(34.97% 0.161 303.1)
XYZxyz(7.0115, 3.5588, 19.7156)
Luminance0.0356 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D147D #447D14
analogous
#18147D #4D147D #7D1478
triadic
#4D147D #7D4D14 #147D4D
tetradic
#4D147D #7D1814 #447D14 #14787D
square
#4D147D #7D1814 #447D14 #14787D
split-complementary
#4D147D #787D14 #147D18
monochromatic
#10041A #2C0C48 #4D147D #6D1CB2 #8D2EDE

Accessibility & contrast

On white

12.27
#4D147D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#4D147D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D147D
12.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D147D#FFFFFF#000000##FFFFFF
##4D147D1.0012.271.7112.27
#FFFFFF12.271.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003480
Deuteranopia (green-blind)
#00357B
Tritanopia (blue-blind)
#433149
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4d147d;
/* rgb */ color: rgb(77, 20, 125);
/* oklch */ color: oklch(35.0% 0.161 303.1);
Tailwind
colors: {
  custom: {
    50: '#845aa4',
    500: '#4d147d',
    950: '#000000',
  },
}
SCSS
$custom: #4d147d;
$custom-light: #845aa4;
$custom-dark: #000000;
JSON
{
  "hex": "#4d147d",
  "rgb": {
    "r": 77,
    "g": 20,
    "b": 125
  },
  "hsl": {
    "h": 272.571,
    "s": 72.414,
    "l": 28.431
  },
  "oklch": {
    "l": 0.34968,
    "c": 0.16137,
    "h": 303.1
  },
  "luminance": 0.03559
}

Semantic roles & 50–950 ramp

primary
#4D147D
secondary
#71B23A
accent
#EF398C
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4D147D

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

Preview Lab → · Contrast checker → · Palette generator →

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