#4E1D8C#4E1D8C

#4E1D8C is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.4% C 0.169 H 297.5°. Best body text is #FFFFFF at 11.18:1 contrast (WCAG AA passes).

Color values

HEX#4E1D8C
RGBrgb(78, 29, 140)
HSLhsl(266, 66%, 33%)
HSVhsv(266, 79%, 55%)
CMYKcmyk(44.3%, 79.3%, 0%, 45.1%)
CIE-LABlab(24.93, 45.54, -52.26)
CIE-LCHlch(24.93, 69.32, 311.07°)
OKLaboklab(37.35% 0.0777 -0.1496)
OKLCHoklch(37.35% 0.169 297.5)
XYZxyz(8.3136, 4.3917, 25.2155)
Luminance0.0439 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1D8C #5B8C1D
analogous
#1D248C #4E1D8C #851D8C
triadic
#4E1D8C #8C4E1D #1D8C4E
tetradic
#4E1D8C #8C1D24 #5B8C1D #1D8C85
square
#4E1D8C #8C1D24 #5B8C1D #1D8C85
split-complementary
#4E1D8C #8C851D #248C1D
monochromatic
#160827 #321259 #4E1D8C #6A28BF #894AD9

Accessibility & contrast

On white

11.18
#4E1D8C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#4E1D8C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1D8C
11.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1D8C#FFFFFF#000000##FFFFFF
##4E1D8C1.0011.181.8811.18
#FFFFFF11.181.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.181.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4e1d8c;
/* rgb */ color: rgb(78, 29, 140);
/* oklch */ color: oklch(37.4% 0.169 297.5);
Tailwind
colors: {
  custom: {
    50: '#865faf',
    500: '#4e1d8c',
    950: '#000000',
  },
}
SCSS
$custom: #4e1d8c;
$custom-light: #865faf;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1d8c",
  "rgb": {
    "r": 78,
    "g": 29,
    "b": 140
  },
  "hsl": {
    "h": 266.486,
    "s": 65.68,
    "l": 33.137
  },
  "oklch": {
    "l": 0.3735,
    "c": 0.16859,
    "h": 297.5
  },
  "luminance": 0.04392
}

Semantic roles & 50–950 ramp

primary
#4E1D8C
secondary
#89BC49
accent
#E93F9E
background
#F8F5FA
surface
#F0EAF5
border
#CBC6CF
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #4E1D8C

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

Preview Lab → · Contrast checker → · Palette generator →

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