#4E1774#4E1774

#4E1774 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.6% C 0.149 H 306.9°. Best body text is #FFFFFF at 12.36:1 contrast (WCAG AA passes).

Color values

HEX#4E1774
RGBrgb(78, 23, 116)
HSLhsl(275, 67%, 27%)
HSVhsv(275, 80%, 45%)
CMYKcmyk(32.8%, 80.2%, 0%, 54.5%)
CIE-LABlab(21.92, 42.06, -41.99)
CIE-LCHlch(21.92, 59.43, 315.05°)
OKLaboklab(34.59% 0.0896 -0.1194)
OKLCHoklch(34.59% 0.149 306.9)
XYZxyz(6.6000, 3.4935, 16.8462)
Luminance0.0349 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1774 #3D7417
analogous
#201774 #4E1774 #74176B
triadic
#4E1774 #744E17 #17744E
tetradic
#4E1774 #742017 #3D7417 #176B74
square
#4E1774 #742017 #3D7417 #176B74
split-complementary
#4E1774 #6B7417 #177420
monochromatic
#11051A #2C0D41 #4E1774 #7021A7 #9230D6

Accessibility & contrast

On white

12.36
#4E1774 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#4E1774 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1774
12.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1774#FFFFFF#000000##FFFFFF
##4E17741.0012.361.7012.36
#FFFFFF12.361.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003377
Deuteranopia (green-blind)
#003572
Tritanopia (blue-blind)
#472E45
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #4e1774;
/* rgb */ color: rgb(78, 23, 116);
/* oklch */ color: oklch(34.6% 0.149 306.9);
Tailwind
colors: {
  custom: {
    50: '#845b9d',
    500: '#4e1774',
    950: '#000000',
  },
}
SCSS
$custom: #4e1774;
$custom-light: #845b9d;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1774",
  "rgb": {
    "r": 78,
    "g": 23,
    "b": 116
  },
  "hsl": {
    "h": 275.484,
    "s": 66.906,
    "l": 27.255
  },
  "oklch": {
    "l": 0.34591,
    "c": 0.14928,
    "h": 306.9
  },
  "luminance": 0.03493
}

Semantic roles & 50–950 ramp

primary
#4E1774
secondary
#6AA93D
accent
#EA3E84
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4E1774

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

Preview Lab → · Contrast checker → · Palette generator →

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