#4E156C#4E156C

#4E156C is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.7% C 0.143 H 310.6°. Best body text is #FFFFFF at 12.74:1 contrast (WCAG AA passes).

Color values

HEX#4E156C
RGBrgb(78, 21, 108)
HSLhsl(279, 67%, 25%)
HSVhsv(279, 81%, 42%)
CMYKcmyk(27.8%, 80.6%, 0%, 57.6%)
CIE-LABlab(20.98, 40.98, -38.35)
CIE-LCHlch(20.98, 56.13, 316.90°)
OKLaboklab(33.72% 0.0933 -0.1087)
OKLCHoklch(33.72% 0.143 310.6)
XYZxyz(6.1163, 3.2389, 14.4874)
Luminance0.0324 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E156C #336C15
analogous
#22156C #4E156C #6C155F
triadic
#4E156C #6C4E15 #156C4E
tetradic
#4E156C #6C2215 #336C15 #155F6C
square
#4E156C #6C2215 #336C15 #155F6C
split-complementary
#4E156C #5F6C15 #156C22
monochromatic
#13051A #290B39 #4E156C #731F9F #9829D2

Accessibility & contrast

On white

12.74
#4E156C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#4E156C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E156C
12.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E156C#FFFFFF#000000##FFFFFF
##4E156C1.0012.741.6512.74
#FFFFFF12.741.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00306E
Deuteranopia (green-blind)
#01336A
Tritanopia (blue-blind)
#4A2A40
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #4e156c;
/* rgb */ color: rgb(78, 21, 108);
/* oklch */ color: oklch(33.7% 0.143 310.6);
Tailwind
colors: {
  custom: {
    50: '#835a97',
    500: '#4e156c',
    950: '#000000',
  },
}
SCSS
$custom: #4e156c;
$custom-light: #835a97;
$custom-dark: #000000;
JSON
{
  "hex": "#4e156c",
  "rgb": {
    "r": 78,
    "g": 21,
    "b": 108
  },
  "hsl": {
    "h": 279.31,
    "s": 67.442,
    "l": 25.294
  },
  "oklch": {
    "l": 0.33719,
    "c": 0.14327,
    "h": 310.6
  },
  "luminance": 0.03239
}

Semantic roles & 50–950 ramp

primary
#4E156C
secondary
#5EA33A
accent
#EA3D79
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #4E156C

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

Preview Lab → · Contrast checker → · Palette generator →

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