#4E1D7A#4E1D7A

#4E1D7A is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.8% C 0.149 H 303.6°. Best body text is #FFFFFF at 11.79:1 contrast (WCAG AA passes).

Color values

HEX#4E1D7A
RGBrgb(78, 29, 122)
HSLhsl(272, 62%, 30%)
HSVhsv(272, 76%, 48%)
CMYKcmyk(36.1%, 76.2%, 0%, 52.2%)
CIE-LABlab(23.35, 40.90, -43.50)
CIE-LCHlch(23.35, 59.71, 313.23°)
OKLaboklab(35.75% 0.0823 -0.1239)
OKLCHoklch(35.75% 0.149 303.6)
XYZxyz(7.0933, 3.9036, 18.7884)
Luminance0.0390 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1D7A #497A1D
analogous
#201D7A #4E1D7A #7A1D78
triadic
#4E1D7A #7A4E1D #1D7A4E
tetradic
#4E1D7A #7A201D #497A1D #1D787A
square
#4E1D7A #7A201D #497A1D #1D787A
split-complementary
#4E1D7A #787A1D #1D7A20
monochromatic
#100619 #2E1149 #4E1D7A #6E29AB #8D40D2

Accessibility & contrast

On white

11.79
#4E1D7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#4E1D7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1D7A
11.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1D7A#FFFFFF#000000##FFFFFF
##4E1D7A1.0011.791.7811.79
#FFFFFF11.791.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377D
Deuteranopia (green-blind)
#003778
Tritanopia (blue-blind)
#45344A
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4e1d7a;
/* rgb */ color: rgb(78, 29, 122);
/* oklch */ color: oklch(35.8% 0.149 303.6);
Tailwind
colors: {
  custom: {
    50: '#845ea1',
    500: '#4e1d7a',
    950: '#000000',
  },
}
SCSS
$custom: #4e1d7a;
$custom-light: #845ea1;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1d7a",
  "rgb": {
    "r": 78,
    "g": 29,
    "b": 122
  },
  "hsl": {
    "h": 271.613,
    "s": 61.589,
    "l": 29.608
  },
  "oklch": {
    "l": 0.35754,
    "c": 0.14876,
    "h": 303.6
  },
  "luminance": 0.03904
}

Semantic roles & 50–950 ramp

primary
#4E1D7A
secondary
#77AE45
accent
#E54390
background
#F8F5FA
surface
#F0E9F3
border
#CBC5CD
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4E1D7A

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

Preview Lab → · Contrast checker → · Palette generator →

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