#4E1D7C#4E1D7C

#4E1D7C is a dark, vivid violet. Relative luminance 0.040; OKLCH L 35.9% C 0.151 H 302.9°. Best body text is #FFFFFF at 11.73:1 contrast (WCAG AA passes).

Color values

HEX#4E1D7C
RGBrgb(78, 29, 124)
HSLhsl(271, 62%, 30%)
HSVhsv(271, 77%, 49%)
CMYKcmyk(37.1%, 76.6%, 0%, 51.4%)
CIE-LABlab(23.52, 41.41, -44.50)
CIE-LCHlch(23.52, 60.78, 312.94°)
OKLaboklab(35.93% 0.0819 -0.1268)
OKLCHoklch(35.93% 0.151 302.9)
XYZxyz(7.2185, 3.9537, 19.4477)
Luminance0.0395 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1D7C #4B7C1D
analogous
#1E1D7C #4E1D7C #7C1D7B
triadic
#4E1D7C #7C4E1D #1D7C4E
tetradic
#4E1D7C #7C1E1D #4B7C1D #1D7B7C
square
#4E1D7C #7C1E1D #4B7C1D #1D7B7C
split-complementary
#4E1D7C #7B7C1D #1D7C1E
monochromatic
#100619 #2F114A #4E1D7C #6D29AE #8C41D3

Accessibility & contrast

On white

11.73
#4E1D7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#4E1D7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1D7C
11.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1D7C#FFFFFF#000000##FFFFFF
##4E1D7C1.0011.731.7911.73
#FFFFFF11.731.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.731.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4e1d7c;
/* rgb */ color: rgb(78, 29, 124);
/* oklch */ color: oklch(35.9% 0.151 302.9);
Tailwind
colors: {
  custom: {
    50: '#845ea3',
    500: '#4e1d7c',
    950: '#000000',
  },
}
SCSS
$custom: #4e1d7c;
$custom-light: #845ea3;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1d7c",
  "rgb": {
    "r": 78,
    "g": 29,
    "b": 124
  },
  "hsl": {
    "h": 270.947,
    "s": 62.092,
    "l": 30
  },
  "oklch": {
    "l": 0.35925,
    "c": 0.15098,
    "h": 302.9
  },
  "luminance": 0.03954
}

Semantic roles & 50–950 ramp

primary
#4E1D7C
secondary
#79B045
accent
#E54391
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4E1D7C

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

Preview Lab → · Contrast checker → · Palette generator →

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