#4E157B#4E157B

#4E157B is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.0% C 0.159 H 304.3°. Best body text is #FFFFFF at 12.23:1 contrast (WCAG AA passes).

Color values

HEX#4E157B
RGBrgb(78, 21, 123)
HSLhsl(274, 71%, 28%)
HSVhsv(274, 83%, 48%)
CMYKcmyk(36.6%, 82.9%, 0%, 51.8%)
CIE-LABlab(22.25, 44.54, -45.92)
CIE-LCHlch(22.25, 63.98, 314.13°)
OKLaboklab(35.01% 0.0895 -0.131)
OKLCHoklch(35.01% 0.159 304.3)
XYZxyz(6.9844, 3.5861, 19.0593)
Luminance0.0359 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E157B #427B15
analogous
#1B157B #4E157B #7B1575
triadic
#4E157B #7B4E15 #157B4E
tetradic
#4E157B #7B1B15 #427B15 #15757B
square
#4E157B #7B1B15 #427B15 #15757B
split-complementary
#4E157B #757B15 #157B1B
monochromatic
#11041A #2D0C47 #4E157B #6F1EAF #8F2FDB

Accessibility & contrast

On white

12.23
#4E157B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E157B
12.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E157B#FFFFFF#000000##FFFFFF
##4E157B1.0012.231.7212.23
#FFFFFF12.231.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347E
Deuteranopia (green-blind)
#003579
Tritanopia (blue-blind)
#453149
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4e157b;
/* rgb */ color: rgb(78, 21, 123);
/* oklch */ color: oklch(35.0% 0.159 304.3);
Tailwind
colors: {
  custom: {
    50: '#855aa2',
    500: '#4e157b',
    950: '#000000',
  },
}
SCSS
$custom: #4e157b;
$custom-light: #855aa2;
$custom-dark: #000000;
JSON
{
  "hex": "#4e157b",
  "rgb": {
    "r": 78,
    "g": 21,
    "b": 123
  },
  "hsl": {
    "h": 273.529,
    "s": 70.833,
    "l": 28.235
  },
  "oklch": {
    "l": 0.35011,
    "c": 0.1586,
    "h": 304.3
  },
  "luminance": 0.03586
}

Semantic roles & 50–950 ramp

primary
#4E157B
secondary
#6FB03B
accent
#EE3A89
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4E157B

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

Preview Lab → · Contrast checker → · Palette generator →

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