#4E157A#4E157A

#4E157A is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.9% C 0.158 H 304.7°. Best body text is #FFFFFF at 12.26:1 contrast (WCAG AA passes).

Color values

HEX#4E157A
RGBrgb(78, 21, 122)
HSLhsl(274, 71%, 28%)
HSVhsv(274, 83%, 48%)
CMYKcmyk(36.1%, 82.8%, 0%, 52.2%)
CIE-LABlab(22.16, 44.30, -45.43)
CIE-LCHlch(22.16, 63.46, 314.28°)
OKLaboklab(34.92% 0.0898 -0.1295)
OKLCHoklch(34.92% 0.158 304.7)
XYZxyz(6.9221, 3.5612, 18.7313)
Luminance0.0356 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E157A #417A15
analogous
#1B157A #4E157A #7A1573
triadic
#4E157A #7A4E15 #157A4E
tetradic
#4E157A #7A1B15 #417A15 #15737A
square
#4E157A #7A1B15 #417A15 #15737A
split-complementary
#4E157A #737A15 #157A1B
monochromatic
#11041A #2D0C46 #4E157A #6F1EAE #902EDB

Accessibility & contrast

On white

12.26
#4E157A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E157A
12.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E157A#FFFFFF#000000##FFFFFF
##4E157A1.0012.261.7112.26
#FFFFFF12.261.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.261.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4e157a;
/* rgb */ color: rgb(78, 21, 122);
/* oklch */ color: oklch(34.9% 0.158 304.7);
Tailwind
colors: {
  custom: {
    50: '#855aa1',
    500: '#4e157a',
    950: '#000000',
  },
}
SCSS
$custom: #4e157a;
$custom-light: #855aa1;
$custom-dark: #000000;
JSON
{
  "hex": "#4e157a",
  "rgb": {
    "r": 78,
    "g": 21,
    "b": 122
  },
  "hsl": {
    "h": 273.861,
    "s": 70.629,
    "l": 28.039
  },
  "oklch": {
    "l": 0.34922,
    "c": 0.15757,
    "h": 304.7
  },
  "luminance": 0.03561
}

Semantic roles & 50–950 ramp

primary
#4E157A
secondary
#6EAF3B
accent
#ED3A88
background
#F8F5FA
surface
#F0E9F3
border
#CBC5CD
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4E157A

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

Preview Lab → · Contrast checker → · Palette generator →

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