#4E1C6A#4E1C6A

#4E1C6A is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.3% C 0.132 H 310.6°. Best body text is #FFFFFF at 12.37:1 contrast (WCAG AA passes).

Color values

HEX#4E1C6A
RGBrgb(78, 28, 106)
HSLhsl(278, 58%, 26%)
HSVhsv(278, 74%, 42%)
CMYKcmyk(26.4%, 73.6%, 0%, 58.4%)
CIE-LABlab(21.91, 37.41, -35.54)
CIE-LCHlch(21.91, 51.60, 316.47°)
OKLaboklab(34.33% 0.0862 -0.1005)
OKLCHoklch(34.33% 0.132 310.6)
XYZxyz(6.1582, 3.4910, 13.9823)
Luminance0.0349 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1C6A #386A1C
analogous
#271C6A #4E1C6A #6A1C5F
triadic
#4E1C6A #6A4E1C #1C6A4E
tetradic
#4E1C6A #6A271C #386A1C #1C5F6A
square
#4E1C6A #6A271C #386A1C #1C5F6A
split-complementary
#4E1C6A #5F6A1C #1C6A27
monochromatic
#120618 #2A0F3A #4E1C6A #72299A #9536CA

Accessibility & contrast

On white

12.37
#4E1C6A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#4E1C6A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1C6A
12.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1C6A#FFFFFF#000000##FFFFFF
##4E1C6A1.0012.371.7012.37
#FFFFFF12.371.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00326C
Deuteranopia (green-blind)
#103568
Tritanopia (blue-blind)
#4A2D41
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #4e1c6a;
/* rgb */ color: rgb(78, 28, 106);
/* oklch */ color: oklch(34.3% 0.132 310.6);
Tailwind
colors: {
  custom: {
    50: '#835d95',
    500: '#4e1c6a',
    950: '#000000',
  },
}
SCSS
$custom: #4e1c6a;
$custom-light: #835d95;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1c6a",
  "rgb": {
    "r": 78,
    "g": 28,
    "b": 106
  },
  "hsl": {
    "h": 278.462,
    "s": 58.209,
    "l": 26.275
  },
  "oklch": {
    "l": 0.34333,
    "c": 0.13241,
    "h": 310.6
  },
  "luminance": 0.03491
}

Semantic roles & 50–950 ramp

primary
#4E1C6A
secondary
#649F43
accent
#E1467E
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #4E1C6A

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

Preview Lab → · Contrast checker → · Palette generator →

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