#4E1C7C#4E1C7C

#4E1C7C is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.8% C 0.152 H 303.0°. Best body text is #FFFFFF at 11.79:1 contrast (WCAG AA passes).

Color values

HEX#4E1C7C
RGBrgb(78, 28, 124)
HSLhsl(271, 63%, 30%)
HSVhsv(271, 77%, 49%)
CMYKcmyk(37.1%, 77.4%, 0%, 51.4%)
CIE-LABlab(23.36, 41.87, -44.76)
CIE-LCHlch(23.36, 61.29, 313.09°)
OKLaboklab(35.81% 0.0829 -0.1276)
OKLCHoklch(35.81% 0.152 303)
XYZxyz(7.1944, 3.9054, 19.4397)
Luminance0.0391 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1C7C #4A7C1C
analogous
#1E1C7C #4E1C7C #7C1C7A
triadic
#4E1C7C #7C4E1C #1C7C4E
tetradic
#4E1C7C #7C1E1C #4A7C1C #1C7A7C
square
#4E1C7C #7C1E1C #4A7C1C #1C7A7C
split-complementary
#4E1C7C #7A7C1C #1C7C1E
monochromatic
#100619 #2F114A #4E1C7C #6D27AE #8C3FD4

Accessibility & contrast

On white

11.79
#4E1C7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#4E1C7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1C7C
11.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1C7C#FFFFFF#000000##FFFFFF
##4E1C7C1.0011.791.7811.79
#FFFFFF11.791.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377F
Deuteranopia (green-blind)
#00377A
Tritanopia (blue-blind)
#45344B
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4e1c7c;
/* rgb */ color: rgb(78, 28, 124);
/* oklch */ color: oklch(35.8% 0.152 303.0);
Tailwind
colors: {
  custom: {
    50: '#845ea3',
    500: '#4e1c7c',
    950: '#000000',
  },
}
SCSS
$custom: #4e1c7c;
$custom-light: #845ea3;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1c7c",
  "rgb": {
    "r": 78,
    "g": 28,
    "b": 124
  },
  "hsl": {
    "h": 271.25,
    "s": 63.158,
    "l": 29.804
  },
  "oklch": {
    "l": 0.35811,
    "c": 0.15215,
    "h": 303
  },
  "luminance": 0.03905
}

Semantic roles & 50–950 ramp

primary
#4E1C7C
secondary
#78B044
accent
#E64290
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4E1C7C

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

Preview Lab → · Contrast checker → · Palette generator →

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