#4E157D#4E157D

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

Color values

HEX#4E157D
RGBrgb(78, 21, 125)
HSLhsl(273, 71%, 29%)
HSVhsv(273, 83%, 49%)
CMYKcmyk(37.6%, 83.2%, 0%, 51%)
CIE-LABlab(22.43, 45.03, -46.90)
CIE-LCHlch(22.43, 65.02, 313.83°)
OKLaboklab(35.19% 0.0889 -0.1338)
OKLCHoklch(35.19% 0.161 303.6)
XYZxyz(7.1109, 3.6367, 19.7254)
Luminance0.0364 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E157D #447D15
analogous
#1A157D #4E157D #7D1578
triadic
#4E157D #7D4E15 #157D4E
tetradic
#4E157D #7D1A15 #447D15 #15787D
square
#4E157D #7D1A15 #447D15 #15787D
split-complementary
#4E157D #787D15 #157D1A
monochromatic
#10041A #2D0C49 #4E157D #6F1EB1 #8E30DC

Accessibility & contrast

On white

12.16
#4E157D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E157D
12.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E157D#FFFFFF#000000##FFFFFF
##4E157D1.0012.161.7312.16
#FFFFFF12.161.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003480
Deuteranopia (green-blind)
#00357B
Tritanopia (blue-blind)
#44314A
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #4e157d;
/* rgb */ color: rgb(78, 21, 125);
/* oklch */ color: oklch(35.2% 0.161 303.6);
Tailwind
colors: {
  custom: {
    50: '#855ba3',
    500: '#4e157d',
    950: '#000000',
  },
}
SCSS
$custom: #4e157d;
$custom-light: #855ba3;
$custom-dark: #000000;
JSON
{
  "hex": "#4e157d",
  "rgb": {
    "r": 78,
    "g": 21,
    "b": 125
  },
  "hsl": {
    "h": 272.885,
    "s": 71.233,
    "l": 28.627
  },
  "oklch": {
    "l": 0.35191,
    "c": 0.16064,
    "h": 303.6
  },
  "luminance": 0.03637
}

Semantic roles & 50–950 ramp

primary
#4E157D
secondary
#71B23C
accent
#EE3A8B
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #4E157D

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

Preview Lab → · Contrast checker → · Palette generator →

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