#4E1E7A#4E1E7A

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

Color values

HEX#4E1E7A
RGBrgb(78, 30, 122)
HSLhsl(271, 61%, 30%)
HSVhsv(271, 75%, 48%)
CMYKcmyk(36.1%, 75.4%, 0%, 52.2%)
CIE-LABlab(23.52, 40.43, -43.23)
CIE-LCHlch(23.52, 59.19, 313.08°)
OKLaboklab(35.87% 0.0813 -0.1231)
OKLCHoklch(35.87% 0.148 303.4)
XYZxyz(7.1182, 3.9534, 18.7967)
Luminance0.0395 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1E7A #4A7A1E
analogous
#201E7A #4E1E7A #7A1E78
triadic
#4E1E7A #7A4E1E #1E7A4E
tetradic
#4E1E7A #7A201E #4A7A1E #1E787A
square
#4E1E7A #7A201E #4A7A1E #1E787A
split-complementary
#4E1E7A #787A1E #1E7A20
monochromatic
#100619 #2F1249 #4E1E7A #6D2AAB #8C42D0

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4E1E7A#FFFFFF#000000##FFFFFF
##4E1E7A1.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)
#00377D
Deuteranopia (green-blind)
#003878
Tritanopia (blue-blind)
#45344A
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4e1e7a;
/* rgb */ color: rgb(78, 30, 122);
/* oklch */ color: oklch(35.9% 0.148 303.4);
Tailwind
colors: {
  custom: {
    50: '#845fa1',
    500: '#4e1e7a',
    950: '#000000',
  },
}
SCSS
$custom: #4e1e7a;
$custom-light: #845fa1;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1e7a",
  "rgb": {
    "r": 78,
    "g": 30,
    "b": 122
  },
  "hsl": {
    "h": 271.304,
    "s": 60.526,
    "l": 29.804
  },
  "oklch": {
    "l": 0.35872,
    "c": 0.14753,
    "h": 303.4
  },
  "luminance": 0.03953
}

Semantic roles & 50–950 ramp

primary
#4E1E7A
secondary
#78AE46
accent
#E44490
background
#F8F5FA
surface
#EFE9F3
border
#CAC5CD
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4E1E7A

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

Preview Lab → · Contrast checker → · Palette generator →

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