#4E147A#4E147A

#4E147A is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.8% C 0.159 H 304.8°. Best body text is #FFFFFF at 12.32:1 contrast (WCAG AA passes).

Color values

HEX#4E147A
RGBrgb(78, 20, 122)
HSLhsl(274, 72%, 28%)
HSVhsv(274, 84%, 48%)
CMYKcmyk(36.1%, 83.6%, 0%, 52.2%)
CIE-LABlab(22.04, 44.68, -45.64)
CIE-LCHlch(22.04, 63.87, 314.39°)
OKLaboklab(34.83% 0.0906 -0.1301)
OKLCHoklch(34.83% 0.159 304.8)
XYZxyz(6.9041, 3.5252, 18.7253)
Luminance0.0352 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E147A #407A14
analogous
#1B147A #4E147A #7A1473
triadic
#4E147A #7A4E14 #147A4E
tetradic
#4E147A #7A1B14 #407A14 #14737A
square
#4E147A #7A1B14 #407A14 #14737A
split-complementary
#4E147A #737A14 #147A1B
monochromatic
#11041A #2C0B45 #4E147A #701DAF #902CDC

Accessibility & contrast

On white

12.32
#4E147A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#4E147A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E147A
12.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E147A#FFFFFF#000000##FFFFFF
##4E147A1.0012.321.7012.32
#FFFFFF12.321.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337D
Deuteranopia (green-blind)
#003578
Tritanopia (blue-blind)
#453048
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4e147a;
/* rgb */ color: rgb(78, 20, 122);
/* oklch */ color: oklch(34.8% 0.159 304.8);
Tailwind
colors: {
  custom: {
    50: '#855aa1',
    500: '#4e147a',
    950: '#000000',
  },
}
SCSS
$custom: #4e147a;
$custom-light: #855aa1;
$custom-dark: #000000;
JSON
{
  "hex": "#4e147a",
  "rgb": {
    "r": 78,
    "g": 20,
    "b": 122
  },
  "hsl": {
    "h": 274.118,
    "s": 71.831,
    "l": 27.843
  },
  "oklch": {
    "l": 0.34832,
    "c": 0.15854,
    "h": 304.8
  },
  "luminance": 0.03525
}

Semantic roles & 50–950 ramp

primary
#4E147A
secondary
#6DB03A
accent
#EF3987
background
#F8F5FA
surface
#F0E9F3
border
#CBC5CD
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4E147A

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

Preview Lab → · Contrast checker → · Palette generator →

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