#4E1C8C#4E1C8C

#4E1C8C is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.2% C 0.170 H 297.6°. Best body text is #FFFFFF at 11.24:1 contrast (WCAG AA passes).

Color values

HEX#4E1C8C
RGBrgb(78, 28, 140)
HSLhsl(267, 67%, 33%)
HSVhsv(267, 80%, 55%)
CMYKcmyk(44.3%, 80%, 0%, 45.1%)
CIE-LABlab(24.78, 45.98, -52.50)
CIE-LCHlch(24.78, 69.79, 311.21°)
OKLaboklab(37.24% 0.0786 -0.1503)
OKLCHoklch(37.24% 0.17 297.6)
XYZxyz(8.2895, 4.3435, 25.2075)
Luminance0.0434 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1C8C #5A8C1C
analogous
#1C228C #4E1C8C #861C8C
triadic
#4E1C8C #8C4E1C #1C8C4E
tetradic
#4E1C8C #8C1C22 #5A8C1C #1C8C86
square
#4E1C8C #8C1C22 #5A8C1C #1C8C86
split-complementary
#4E1C8C #8C861C #228C1C
monochromatic
#150826 #321259 #4E1C8C #6A26BF #8948DA

Accessibility & contrast

On white

11.24
#4E1C8C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#4E1C8C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1C8C
11.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1C8C#FFFFFF#000000##FFFFFF
##4E1C8C1.0011.241.8711.24
#FFFFFF11.241.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8F
Deuteranopia (green-blind)
#00398A
Tritanopia (blue-blind)
#3E3B54
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #4e1c8c;
/* rgb */ color: rgb(78, 28, 140);
/* oklch */ color: oklch(37.2% 0.170 297.6);
Tailwind
colors: {
  custom: {
    50: '#865faf',
    500: '#4e1c8c',
    950: '#000000',
  },
}
SCSS
$custom: #4e1c8c;
$custom-light: #865faf;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1c8c",
  "rgb": {
    "r": 78,
    "g": 28,
    "b": 140
  },
  "hsl": {
    "h": 266.786,
    "s": 66.667,
    "l": 32.941
  },
  "oklch": {
    "l": 0.37245,
    "c": 0.16961,
    "h": 297.6
  },
  "luminance": 0.04344
}

Semantic roles & 50–950 ramp

primary
#4E1C8C
secondary
#88BC48
accent
#EA3E9D
background
#F8F5FA
surface
#F0E9F5
border
#CBC5CF
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4E1C8C

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

Preview Lab → · Contrast checker → · Palette generator →

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