#4E156D#4E156D

#4E156D is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.8% C 0.144 H 310.2°. Best body text is #FFFFFF at 12.71:1 contrast (WCAG AA passes).

Color values

HEX#4E156D
RGBrgb(78, 21, 109)
HSLhsl(279, 68%, 25%)
HSVhsv(279, 81%, 43%)
CMYKcmyk(28.4%, 80.7%, 0%, 57.3%)
CIE-LABlab(21.06, 41.22, -38.87)
CIE-LCHlch(21.06, 56.65, 316.68°)
OKLaboklab(33.8% 0.0931 -0.1102)
OKLCHoklch(33.8% 0.144 310.2)
XYZxyz(6.1698, 3.2603, 14.7693)
Luminance0.0326 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E156D #346D15
analogous
#22156D #4E156D #6D1560
triadic
#4E156D #6D4E15 #156D4E
tetradic
#4E156D #6D2215 #346D15 #15606D
square
#4E156D #6D2215 #346D15 #15606D
split-complementary
#4E156D #606D15 #156D22
monochromatic
#12051A #290B3A #4E156D #731FA0 #9729D4

Accessibility & contrast

On white

12.71
#4E156D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E156D
12.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E156D#FFFFFF#000000##FFFFFF
##4E156D1.0012.711.6512.71
#FFFFFF12.711.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00306F
Deuteranopia (green-blind)
#00336B
Tritanopia (blue-blind)
#4A2A40
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #4e156d;
/* rgb */ color: rgb(78, 21, 109);
/* oklch */ color: oklch(33.8% 0.144 310.2);
Tailwind
colors: {
  custom: {
    50: '#835a97',
    500: '#4e156d',
    950: '#000000',
  },
}
SCSS
$custom: #4e156d;
$custom-light: #835a97;
$custom-dark: #000000;
JSON
{
  "hex": "#4e156d",
  "rgb": {
    "r": 78,
    "g": 21,
    "b": 109
  },
  "hsl": {
    "h": 278.864,
    "s": 67.692,
    "l": 25.49
  },
  "oklch": {
    "l": 0.33802,
    "c": 0.14429,
    "h": 310.2
  },
  "luminance": 0.0326
}

Semantic roles & 50–950 ramp

primary
#4E156D
secondary
#5FA33A
accent
#EB3D7A
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4E156D

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

Preview Lab → · Contrast checker → · Palette generator →

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