#4D147C#4D147C

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

Color values

HEX#4D147C
RGBrgb(77, 20, 124)
HSLhsl(273, 72%, 28%)
HSVhsv(273, 84%, 49%)
CMYKcmyk(37.9%, 83.9%, 0%, 51.4%)
CIE-LABlab(22.06, 44.99, -46.88)
CIE-LCHlch(22.06, 64.97, 313.83°)
OKLaboklab(34.88% 0.0884 -0.1338)
OKLCHoklch(34.88% 0.16 303.5)
XYZxyz(6.9480, 3.5333, 19.3808)
Luminance0.0353 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D147C #437C14
analogous
#19147C #4D147C #7C1477
triadic
#4D147C #7C4D14 #147C4D
tetradic
#4D147C #7C1914 #437C14 #14777C
square
#4D147C #7C1914 #437C14 #14777C
split-complementary
#4D147C #777C14 #147C19
monochromatic
#10041A #2C0B47 #4D147C #6E1DB1 #8E2DDD

Accessibility & contrast

On white

12.31
#4D147C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D147C
12.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D147C#FFFFFF#000000##FFFFFF
##4D147C1.0012.311.7112.31
#FFFFFF12.311.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347F
Deuteranopia (green-blind)
#00357A
Tritanopia (blue-blind)
#433149
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4d147c;
/* rgb */ color: rgb(77, 20, 124);
/* oklch */ color: oklch(34.9% 0.160 303.5);
Tailwind
colors: {
  custom: {
    50: '#845aa3',
    500: '#4d147c',
    950: '#000000',
  },
}
SCSS
$custom: #4d147c;
$custom-light: #845aa3;
$custom-dark: #000000;
JSON
{
  "hex": "#4d147c",
  "rgb": {
    "r": 77,
    "g": 20,
    "b": 124
  },
  "hsl": {
    "h": 272.885,
    "s": 72.222,
    "l": 28.235
  },
  "oklch": {
    "l": 0.34876,
    "c": 0.16035,
    "h": 303.5
  },
  "luminance": 0.03533
}

Semantic roles & 50–950 ramp

primary
#4D147C
secondary
#70B23A
accent
#EF398B
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4D147C

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

Preview Lab → · Contrast checker → · Palette generator →

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