#4E1E7C#4E1E7C

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

Color values

HEX#4E1E7C
RGBrgb(78, 30, 124)
HSLhsl(271, 61%, 30%)
HSVhsv(271, 76%, 49%)
CMYKcmyk(37.1%, 75.8%, 0%, 51.4%)
CIE-LABlab(23.68, 40.94, -44.23)
CIE-LCHlch(23.68, 60.27, 312.79°)
OKLaboklab(36.04% 0.0809 -0.126)
OKLCHoklch(36.04% 0.15 302.7)
XYZxyz(7.2434, 4.0035, 19.4560)
Luminance0.0400 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1E7C #4C7C1E
analogous
#1F1E7C #4E1E7C #7C1E7B
triadic
#4E1E7C #7C4E1E #1E7C4E
tetradic
#4E1E7C #7C1F1E #4C7C1E #1E7B7C
square
#4E1E7C #7C1F1E #4C7C1E #1E7B7C
split-complementary
#4E1E7C #7B7C1E #1E7C1F
monochromatic
#100619 #2F124B #4E1E7C #6D2AAD #8C43D1

Accessibility & contrast

On white

11.66
#4E1E7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E1E7C
11.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1E7C#FFFFFF#000000##FFFFFF
##4E1E7C1.0011.661.8011.66
#FFFFFF11.661.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.661.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4e1e7c;
/* rgb */ color: rgb(78, 30, 124);
/* oklch */ color: oklch(36.0% 0.150 302.7);
Tailwind
colors: {
  custom: {
    50: '#845fa3',
    500: '#4e1e7c',
    950: '#000000',
  },
}
SCSS
$custom: #4e1e7c;
$custom-light: #845fa3;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1e7c",
  "rgb": {
    "r": 78,
    "g": 30,
    "b": 124
  },
  "hsl": {
    "h": 270.638,
    "s": 61.039,
    "l": 30.196
  },
  "oklch": {
    "l": 0.36042,
    "c": 0.14977,
    "h": 302.7
  },
  "luminance": 0.04003
}

Semantic roles & 50–950 ramp

primary
#4E1E7C
secondary
#7AAF46
accent
#E44492
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4E1E7C

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

Preview Lab → · Contrast checker → · Palette generator →

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