#4E1D8F#4E1D8F

#4E1D8F is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.6% C 0.172 H 296.5°. Best body text is #FFFFFF at 11.07:1 contrast (WCAG AA passes).

Color values

HEX#4E1D8F
RGBrgb(78, 29, 143)
HSLhsl(266, 66%, 34%)
HSVhsv(266, 80%, 56%)
CMYKcmyk(45.5%, 79.7%, 0%, 43.9%)
CIE-LABlab(25.20, 46.33, -53.67)
CIE-LCHlch(25.20, 70.90, 310.80°)
OKLaboklab(37.63% 0.0768 -0.1537)
OKLCHoklch(37.63% 0.172 296.5)
XYZxyz(8.5379, 4.4814, 26.3964)
Luminance0.0448 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1D8F #5E8F1D
analogous
#1D258F #4E1D8F #871D8F
triadic
#4E1D8F #8F4E1D #1D8F4E
tetradic
#4E1D8F #8F1D25 #5E8F1D #1D8F87
square
#4E1D8F #8F1D25 #5E8F1D #1D8F87
split-complementary
#4E1D8F #8F871D #258F1D
monochromatic
#160829 #32135C #4E1D8F #6A27C2 #894CDB

Accessibility & contrast

On white

11.07
#4E1D8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#4E1D8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1D8F
11.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1D8F#FFFFFF#000000##FFFFFF
##4E1D8F1.0011.071.9011.07
#FFFFFF11.071.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C92
Deuteranopia (green-blind)
#003A8D
Tritanopia (blue-blind)
#3C3D56
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #4e1d8f;
/* rgb */ color: rgb(78, 29, 143);
/* oklch */ color: oklch(37.6% 0.172 296.5);
Tailwind
colors: {
  custom: {
    50: '#875fb1',
    500: '#4e1d8f',
    950: '#000000',
  },
}
SCSS
$custom: #4e1d8f;
$custom-light: #875fb1;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1d8f",
  "rgb": {
    "r": 78,
    "g": 29,
    "b": 143
  },
  "hsl": {
    "h": 265.789,
    "s": 66.279,
    "l": 33.725
  },
  "oklch": {
    "l": 0.37628,
    "c": 0.17187,
    "h": 296.5
  },
  "luminance": 0.04482
}

Semantic roles & 50–950 ramp

primary
#4E1D8F
secondary
#8CBD4B
accent
#E93FA0
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #4E1D8F

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

Preview Lab → · Contrast checker → · Palette generator →

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