#4E158D#4E158D

#4E158D is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.7% C 0.177 H 298.1°. Best body text is #FFFFFF at 11.57:1 contrast (WCAG AA passes).

Color values

HEX#4E158D
RGBrgb(78, 21, 141)
HSLhsl(269, 74%, 32%)
HSVhsv(269, 85%, 55%)
CMYKcmyk(44.7%, 85.1%, 0%, 44.7%)
CIE-LABlab(23.93, 48.97, -54.51)
CIE-LCHlch(23.93, 73.27, 311.93°)
OKLaboklab(36.69% 0.0834 -0.1561)
OKLCHoklch(36.69% 0.177 298.1)
XYZxyz(8.2165, 4.0790, 25.5486)
Luminance0.0408 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E158D #548D15
analogous
#15188D #4E158D #8A158D
triadic
#4E158D #8D4E15 #158D4E
tetradic
#4E158D #8D1518 #548D15 #158D8A
square
#4E158D #8D1518 #548D15 #158D8A
split-complementary
#4E158D #8D8A15 #188D15
monochromatic
#130522 #310D58 #4E158D #6B1DC2 #8A3BE2

Accessibility & contrast

On white

11.57
#4E158D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#4E158D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E158D
11.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E158D#FFFFFF#000000##FFFFFF
##4E158D1.0011.571.8211.57
#FFFFFF11.571.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003990
Deuteranopia (green-blind)
#00388B
Tritanopia (blue-blind)
#3E3953
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4e158d;
/* rgb */ color: rgb(78, 21, 141);
/* oklch */ color: oklch(36.7% 0.177 298.1);
Tailwind
colors: {
  custom: {
    50: '#875caf',
    500: '#4e158d',
    950: '#000000',
  },
}
SCSS
$custom: #4e158d;
$custom-light: #875caf;
$custom-dark: #000000;
JSON
{
  "hex": "#4e158d",
  "rgb": {
    "r": 78,
    "g": 21,
    "b": 141
  },
  "hsl": {
    "h": 268.5,
    "s": 74.074,
    "l": 31.765
  },
  "oklch": {
    "l": 0.36688,
    "c": 0.17705,
    "h": 298.1
  },
  "luminance": 0.04079
}

Semantic roles & 50–950 ramp

primary
#4E158D
secondary
#82C13D
accent
#F13799
background
#F8F5FA
surface
#F0E9F5
border
#CBC5CF
text
#0C0411
muted
#7D7980

Preview Lab

Preview with #4E158D

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

Preview Lab → · Contrast checker → · Palette generator →

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