#4E1779#4E1779

#4E1779 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.0% C 0.154 H 304.9°. Best body text is #FFFFFF at 12.19:1 contrast (WCAG AA passes).

Color values

HEX#4E1779
RGBrgb(78, 23, 121)
HSLhsl(274, 68%, 28%)
HSVhsv(274, 81%, 47%)
CMYKcmyk(35.5%, 81%, 0%, 52.5%)
CIE-LABlab(22.35, 43.27, -44.49)
CIE-LCHlch(22.35, 62.07, 314.20°)
OKLaboklab(35.02% 0.0883 -0.1268)
OKLCHoklch(35.02% 0.155 304.9)
XYZxyz(6.8987, 3.6130, 18.4194)
Luminance0.0361 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1779 #427917
analogous
#1D1779 #4E1779 #791773
triadic
#4E1779 #794E17 #17794E
tetradic
#4E1779 #791D17 #427917 #177379
square
#4E1779 #791D17 #427917 #177379
split-complementary
#4E1779 #737917 #17791D
monochromatic
#11051A #2D0D46 #4E1779 #6F21AC #8F32D8

Accessibility & contrast

On white

12.19
#4E1779 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E1779
12.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1779#FFFFFF#000000##FFFFFF
##4E17791.0012.191.7212.19
#FFFFFF12.191.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347C
Deuteranopia (green-blind)
#003577
Tritanopia (blue-blind)
#463148
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4e1779;
/* rgb */ color: rgb(78, 23, 121);
/* oklch */ color: oklch(35.0% 0.154 304.9);
Tailwind
colors: {
  custom: {
    50: '#845ba0',
    500: '#4e1779',
    950: '#000000',
  },
}
SCSS
$custom: #4e1779;
$custom-light: #845ba0;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1779",
  "rgb": {
    "r": 78,
    "g": 23,
    "b": 121
  },
  "hsl": {
    "h": 273.673,
    "s": 68.056,
    "l": 28.235
  },
  "oklch": {
    "l": 0.35023,
    "c": 0.1545,
    "h": 304.9
  },
  "luminance": 0.03613
}

Semantic roles & 50–950 ramp

primary
#4E1779
secondary
#6FAE3E
accent
#EB3D89
background
#F8F5FA
surface
#F0E9F3
border
#CBC5CD
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4E1779

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

Preview Lab → · Contrast checker → · Palette generator →

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