#4E157C#4E157C

#4E157C is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.1% C 0.160 H 304.0°. Best body text is #FFFFFF at 12.19:1 contrast (WCAG AA passes).

Color values

HEX#4E157C
RGBrgb(78, 21, 124)
HSLhsl(273, 71%, 28%)
HSVhsv(273, 83%, 49%)
CMYKcmyk(37.1%, 83.1%, 0%, 51.4%)
CIE-LABlab(22.34, 44.79, -46.42)
CIE-LCHlch(22.34, 64.50, 313.98°)
OKLaboklab(35.1% 0.0892 -0.1324)
OKLCHoklch(35.1% 0.16 304)
XYZxyz(7.0473, 3.6113, 19.3907)
Luminance0.0361 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E157C #437C15
analogous
#1B157C #4E157C #7C1576
triadic
#4E157C #7C4E15 #157C4E
tetradic
#4E157C #7C1B15 #437C15 #15767C
square
#4E157C #7C1B15 #437C15 #15767C
split-complementary
#4E157C #767C15 #157C1B
monochromatic
#10041A #2D0C48 #4E157C #6F1EB0 #8F30DC

Accessibility & contrast

On white

12.19
#4E157C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#4E157C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E157C
12.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E157C#FFFFFF#000000##FFFFFF
##4E157C1.0012.191.7212.19
#FFFFFF12.191.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.191.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4e157c;
/* rgb */ color: rgb(78, 21, 124);
/* oklch */ color: oklch(35.1% 0.160 304.0);
Tailwind
colors: {
  custom: {
    50: '#855ba3',
    500: '#4e157c',
    950: '#000000',
  },
}
SCSS
$custom: #4e157c;
$custom-light: #855ba3;
$custom-dark: #000000;
JSON
{
  "hex": "#4e157c",
  "rgb": {
    "r": 78,
    "g": 21,
    "b": 124
  },
  "hsl": {
    "h": 273.204,
    "s": 71.034,
    "l": 28.431
  },
  "oklch": {
    "l": 0.35101,
    "c": 0.15962,
    "h": 304
  },
  "luminance": 0.03611
}

Semantic roles & 50–950 ramp

primary
#4E157C
secondary
#70B13C
accent
#EE3A8A
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #4E157C

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

Preview Lab → · Contrast checker → · Palette generator →

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