#4E1C6C#4E1C6C

#4E1C6C is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.5% C 0.135 H 309.7°. Best body text is #FFFFFF at 12.31:1 contrast (WCAG AA passes).

Color values

HEX#4E1C6C
RGBrgb(78, 28, 108)
HSLhsl(278, 59%, 27%)
HSVhsv(278, 74%, 42%)
CMYKcmyk(27.8%, 74.1%, 0%, 57.6%)
CIE-LABlab(22.06, 37.89, -36.59)
CIE-LCHlch(22.06, 52.68, 316.00°)
OKLaboklab(34.49% 0.086 -0.1036)
OKLCHoklch(34.49% 0.135 309.7)
XYZxyz(6.2634, 3.5330, 14.5364)
Luminance0.0353 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1C6C #3A6C1C
analogous
#261C6C #4E1C6C #6C1C62
triadic
#4E1C6C #6C4E1C #1C6C4E
tetradic
#4E1C6C #6C261C #3A6C1C #1C626C
square
#4E1C6C #6C261C #3A6C1C #1C626C
split-complementary
#4E1C6C #626C1C #1C6C26
monochromatic
#120618 #2B0F3B #4E1C6C #71299D #9437CB

Accessibility & contrast

On white

12.31
#4E1C6C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#4E1C6C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1C6C
12.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1C6C#FFFFFF#000000##FFFFFF
##4E1C6C1.0012.311.7112.31
#FFFFFF12.311.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00336E
Deuteranopia (green-blind)
#0C366A
Tritanopia (blue-blind)
#4A2E42
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4e1c6c;
/* rgb */ color: rgb(78, 28, 108);
/* oklch */ color: oklch(34.5% 0.135 309.7);
Tailwind
colors: {
  custom: {
    50: '#835d97',
    500: '#4e1c6c',
    950: '#000000',
  },
}
SCSS
$custom: #4e1c6c;
$custom-light: #835d97;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1c6c",
  "rgb": {
    "r": 78,
    "g": 28,
    "b": 108
  },
  "hsl": {
    "h": 277.5,
    "s": 58.824,
    "l": 26.667
  },
  "oklch": {
    "l": 0.34489,
    "c": 0.1346,
    "h": 309.7
  },
  "luminance": 0.03533
}

Semantic roles & 50–950 ramp

primary
#4E1C6C
secondary
#66A143
accent
#E24680
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #4E1C6C

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

Preview Lab → · Contrast checker → · Palette generator →

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