#4E146D#4E146D

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

Color values

HEX#4E146D
RGBrgb(78, 20, 109)
HSLhsl(279, 69%, 25%)
HSVhsv(279, 82%, 43%)
CMYKcmyk(28.4%, 81.7%, 0%, 57.3%)
CIE-LABlab(20.92, 41.61, -39.09)
CIE-LCHlch(20.92, 57.09, 316.79°)
OKLaboklab(33.71% 0.0941 -0.1109)
OKLCHoklch(33.71% 0.145 310.3)
XYZxyz(6.1518, 3.2243, 14.7633)
Luminance0.0322 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E146D #336D14
analogous
#21146D #4E146D #6D145F
triadic
#4E146D #6D4E14 #146D4E
tetradic
#4E146D #6D2114 #336D14 #145F6D
square
#4E146D #6D2114 #336D14 #145F6D
split-complementary
#4E146D #5F6D14 #146D21
monochromatic
#13051A #290B39 #4E146D #731DA1 #9827D4

Accessibility & contrast

On white

12.77
#4E146D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E146D
12.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E146D#FFFFFF#000000##FFFFFF
##4E146D1.0012.771.6412.77
#FFFFFF12.771.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.771.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4e146d;
/* rgb */ color: rgb(78, 20, 109);
/* oklch */ color: oklch(33.7% 0.145 310.3);
Tailwind
colors: {
  custom: {
    50: '#835997',
    500: '#4e146d',
    950: '#000000',
  },
}
SCSS
$custom: #4e146d;
$custom-light: #835997;
$custom-dark: #000000;
JSON
{
  "hex": "#4e146d",
  "rgb": {
    "r": 78,
    "g": 20,
    "b": 109
  },
  "hsl": {
    "h": 279.101,
    "s": 68.992,
    "l": 25.294
  },
  "oklch": {
    "l": 0.33706,
    "c": 0.14539,
    "h": 310.3
  },
  "luminance": 0.03224
}

Semantic roles & 50–950 ramp

primary
#4E146D
secondary
#5EA439
accent
#EC3C79
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4E146D

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

Preview Lab → · Contrast checker → · Palette generator →

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