#4E147E#4E147E

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

Color values

HEX#4E147E
RGBrgb(78, 20, 126)
HSLhsl(273, 73%, 29%)
HSVhsv(273, 84%, 49%)
CMYKcmyk(38.1%, 84.1%, 0%, 50.6%)
CIE-LABlab(22.40, 45.64, -47.60)
CIE-LCHlch(22.40, 65.94, 313.80°)
OKLaboklab(35.19% 0.0893 -0.1359)
OKLCHoklch(35.19% 0.163 303.3)
XYZxyz(7.1570, 3.6264, 20.0575)
Luminance0.0363 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E147E #447E14
analogous
#19147E #4E147E #7E1479
triadic
#4E147E #7E4E14 #147E4E
tetradic
#4E147E #7E1914 #447E14 #14797E
square
#4E147E #7E1914 #447E14 #14797E
split-complementary
#4E147E #797E14 #147E19
monochromatic
#10041A #2D0C49 #4E147E #6F1CB3 #8E2EDE

Accessibility & contrast

On white

12.17
#4E147E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E147E
12.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E147E#FFFFFF#000000##FFFFFF
##4E147E1.0012.171.7312.17
#FFFFFF12.171.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003481
Deuteranopia (green-blind)
#00357C
Tritanopia (blue-blind)
#44324A
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #4e147e;
/* rgb */ color: rgb(78, 20, 126);
/* oklch */ color: oklch(35.2% 0.163 303.3);
Tailwind
colors: {
  custom: {
    50: '#855aa4',
    500: '#4e147e',
    950: '#000000',
  },
}
SCSS
$custom: #4e147e;
$custom-light: #855aa4;
$custom-dark: #000000;
JSON
{
  "hex": "#4e147e",
  "rgb": {
    "r": 78,
    "g": 20,
    "b": 126
  },
  "hsl": {
    "h": 272.83,
    "s": 72.603,
    "l": 28.627
  },
  "oklch": {
    "l": 0.35194,
    "c": 0.1626,
    "h": 303.3
  },
  "luminance": 0.03626
}

Semantic roles & 50–950 ramp

primary
#4E147E
secondary
#71B33A
accent
#EF388B
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #4E147E

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

Preview Lab → · Contrast checker → · Palette generator →

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