#4E1D7D#4E1D7D

#4E1D7D is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.0% C 0.152 H 302.5°. Best body text is #FFFFFF at 11.69:1 contrast (WCAG AA passes).

Color values

HEX#4E1D7D
RGBrgb(78, 29, 125)
HSLhsl(271, 62%, 30%)
HSVhsv(271, 77%, 49%)
CMYKcmyk(37.6%, 76.8%, 0%, 51%)
CIE-LABlab(23.60, 41.66, -45.00)
CIE-LCHlch(23.60, 61.32, 312.80°)
OKLaboklab(36.01% 0.0817 -0.1283)
OKLCHoklch(36.01% 0.152 302.5)
XYZxyz(7.2820, 3.9791, 19.7825)
Luminance0.0398 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1D7D #4C7D1D
analogous
#1E1D7D #4E1D7D #7D1D7C
triadic
#4E1D7D #7D4E1D #1D7D4E
tetradic
#4E1D7D #7D1E1D #4C7D1D #1D7C7D
square
#4E1D7D #7D1E1D #4C7D1D #1D7C7D
split-complementary
#4E1D7D #7C7D1D #1D7D1E
monochromatic
#10061A #2F114B #4E1D7D #6D29AF #8C41D3

Accessibility & contrast

On white

11.69
#4E1D7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#4E1D7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1D7D
11.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1D7D#FFFFFF#000000##FFFFFF
##4E1D7D1.0011.691.8011.69
#FFFFFF11.691.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003780
Deuteranopia (green-blind)
#00387B
Tritanopia (blue-blind)
#44354B
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4e1d7d;
/* rgb */ color: rgb(78, 29, 125);
/* oklch */ color: oklch(36.0% 0.152 302.5);
Tailwind
colors: {
  custom: {
    50: '#845ea3',
    500: '#4e1d7d',
    950: '#000000',
  },
}
SCSS
$custom: #4e1d7d;
$custom-light: #845ea3;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1d7d",
  "rgb": {
    "r": 78,
    "g": 29,
    "b": 125
  },
  "hsl": {
    "h": 270.625,
    "s": 62.338,
    "l": 30.196
  },
  "oklch": {
    "l": 0.36011,
    "c": 0.15208,
    "h": 302.5
  },
  "luminance": 0.03979
}

Semantic roles & 50–950 ramp

primary
#4E1D7D
secondary
#7AB145
accent
#E54292
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4E1D7D

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

Preview Lab → · Contrast checker → · Palette generator →

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