#4E1778#4E1778

#4E1778 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.9% C 0.153 H 305.3°. Best body text is #FFFFFF at 12.22:1 contrast (WCAG AA passes).

Color values

HEX#4E1778
RGBrgb(78, 23, 120)
HSLhsl(274, 68%, 28%)
HSVhsv(274, 81%, 47%)
CMYKcmyk(35%, 80.8%, 0%, 52.9%)
CIE-LABlab(22.26, 43.03, -44.00)
CIE-LCHlch(22.26, 61.54, 314.36°)
OKLaboklab(34.94% 0.0886 -0.1253)
OKLCHoklch(34.94% 0.153 305.3)
XYZxyz(6.8377, 3.5886, 18.0981)
Luminance0.0359 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1778 #417817
analogous
#1E1778 #4E1778 #781771
triadic
#4E1778 #784E17 #17784E
tetradic
#4E1778 #781E17 #417817 #177178
square
#4E1778 #781E17 #417817 #177178
split-complementary
#4E1778 #717817 #17781E
monochromatic
#11051A #2D0D45 #4E1778 #6F21AB #9032D8

Accessibility & contrast

On white

12.22
#4E1778 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#4E1778 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1778
12.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1778#FFFFFF#000000##FFFFFF
##4E17781.0012.221.7212.22
#FFFFFF12.221.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347B
Deuteranopia (green-blind)
#003576
Tritanopia (blue-blind)
#463047
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4e1778;
/* rgb */ color: rgb(78, 23, 120);
/* oklch */ color: oklch(34.9% 0.153 305.3);
Tailwind
colors: {
  custom: {
    50: '#845ba0',
    500: '#4e1778',
    950: '#000000',
  },
}
SCSS
$custom: #4e1778;
$custom-light: #845ba0;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1778",
  "rgb": {
    "r": 78,
    "g": 23,
    "b": 120
  },
  "hsl": {
    "h": 274.021,
    "s": 67.832,
    "l": 28.039
  },
  "oklch": {
    "l": 0.34936,
    "c": 0.15346,
    "h": 305.3
  },
  "luminance": 0.03589
}

Semantic roles & 50–950 ramp

primary
#4E1778
secondary
#6EAD3E
accent
#EB3D88
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040F
muted
#7C797E

Preview Lab

Preview with #4E1778

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

Preview Lab → · Contrast checker → · Palette generator →

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