#4E147F#4E147F

#4E147F is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.3% C 0.164 H 303.0°. Best body text is #FFFFFF at 12.14:1 contrast (WCAG AA passes).

Color values

HEX#4E147F
RGBrgb(78, 20, 127)
HSLhsl(273, 73%, 29%)
HSVhsv(273, 84%, 50%)
CMYKcmyk(38.6%, 84.3%, 0%, 50.2%)
CIE-LABlab(22.49, 45.88, -48.08)
CIE-LCHlch(22.49, 66.46, 313.66°)
OKLaboklab(35.29% 0.089 -0.1373)
OKLCHoklch(35.29% 0.164 303)
XYZxyz(7.2219, 3.6523, 20.3991)
Luminance0.0365 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E147F #457F14
analogous
#18147F #4E147F #7F147B
triadic
#4E147F #7F4E14 #147F4E
tetradic
#4E147F #7F1814 #457F14 #147B7F
square
#4E147F #7F1814 #457F14 #147B7F
split-complementary
#4E147F #7B7F14 #147F18
monochromatic
#10041A #2E0C4A #4E147F #6E1CB4 #8E2FDE

Accessibility & contrast

On white

12.14
#4E147F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#4E147F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E147F
12.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E147F#FFFFFF#000000##FFFFFF
##4E147F1.0012.141.7312.14
#FFFFFF12.141.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.141.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4e147f;
/* rgb */ color: rgb(78, 20, 127);
/* oklch */ color: oklch(35.3% 0.164 303.0);
Tailwind
colors: {
  custom: {
    50: '#855aa5',
    500: '#4e147f',
    950: '#000000',
  },
}
SCSS
$custom: #4e147f;
$custom-light: #855aa5;
$custom-dark: #000000;
JSON
{
  "hex": "#4e147f",
  "rgb": {
    "r": 78,
    "g": 20,
    "b": 127
  },
  "hsl": {
    "h": 272.523,
    "s": 72.789,
    "l": 28.824
  },
  "oklch": {
    "l": 0.35286,
    "c": 0.16361,
    "h": 303
  },
  "luminance": 0.03652
}

Semantic roles & 50–950 ramp

primary
#4E147F
secondary
#72B43B
accent
#EF388C
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #4E147F

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

Preview Lab → · Contrast checker → · Palette generator →

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