#4E156A#4E156A

#4E156A is a dark, vivid purple. Relative luminance 0.032; OKLCH L 33.6% C 0.141 H 311.6°. Best body text is #FFFFFF at 12.81:1 contrast (WCAG AA passes).

Color values

HEX#4E156A
RGBrgb(78, 21, 106)
HSLhsl(280, 67%, 25%)
HSVhsv(280, 80%, 42%)
CMYKcmyk(26.4%, 80.2%, 0%, 58.4%)
CIE-LABlab(20.82, 40.52, -37.31)
CIE-LCHlch(20.82, 55.08, 317.36°)
OKLaboklab(33.56% 0.0938 -0.1056)
OKLCHoklch(33.56% 0.141 311.6)
XYZxyz(6.0111, 3.1968, 13.9333)
Luminance0.0320 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E156A #316A15
analogous
#23156A #4E156A #6A155C
triadic
#4E156A #6A4E15 #156A4E
tetradic
#4E156A #6A2315 #316A15 #155C6A
square
#4E156A #6A2315 #316A15 #155C6A
split-complementary
#4E156A #5C6A15 #156A23
monochromatic
#13051A #280B37 #4E156A #741F9D #9929D0

Accessibility & contrast

On white

12.81
#4E156A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#4E156A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E156A
12.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E156A#FFFFFF#000000##FFFFFF
##4E156A1.0012.811.6412.81
#FFFFFF12.811.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F6C
Deuteranopia (green-blind)
#053368
Tritanopia (blue-blind)
#4A293F
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #4e156a;
/* rgb */ color: rgb(78, 21, 106);
/* oklch */ color: oklch(33.6% 0.141 311.6);
Tailwind
colors: {
  custom: {
    50: '#835995',
    500: '#4e156a',
    950: '#000000',
  },
}
SCSS
$custom: #4e156a;
$custom-light: #835995;
$custom-dark: #000000;
JSON
{
  "hex": "#4e156a",
  "rgb": {
    "r": 78,
    "g": 21,
    "b": 106
  },
  "hsl": {
    "h": 280.235,
    "s": 66.929,
    "l": 24.902
  },
  "oklch": {
    "l": 0.33555,
    "c": 0.14124,
    "h": 311.6
  },
  "luminance": 0.03197
}

Semantic roles & 50–950 ramp

primary
#4E156A
secondary
#5CA13A
accent
#EA3E77
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #4E156A

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

Preview Lab → · Contrast checker → · Palette generator →

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