#4E1174#4E1174

#4E1174 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.0% C 0.155 H 307.6°. Best body text is #FFFFFF at 12.68:1 contrast (WCAG AA passes).

Color values

HEX#4E1174
RGBrgb(78, 17, 116)
HSLhsl(277, 74%, 26%)
HSVhsv(277, 85%, 45%)
CMYKcmyk(32.8%, 85.3%, 0%, 54.5%)
CIE-LABlab(21.14, 44.33, -43.26)
CIE-LCHlch(21.14, 61.94, 315.70°)
OKLaboklab(34.04% 0.0947 -0.1231)
OKLCHoklch(34.04% 0.155 307.6)
XYZxyz(6.4940, 3.2816, 16.8109)
Luminance0.0328 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1174 #377411
analogous
#1D1174 #4E1174 #741168
triadic
#4E1174 #744E11 #11744E
tetradic
#4E1174 #741D11 #377411 #116874
square
#4E1174 #741D11 #377411 #116874
split-complementary
#4E1174 #687411 #11741D
monochromatic
#12041B #2A093F #4E1174 #7219A9 #9621DE

Accessibility & contrast

On white

12.68
#4E1174 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#4E1174 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1174
12.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1174#FFFFFF#000000##FFFFFF
##4E11741.0012.681.6612.68
#FFFFFF12.681.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003177
Deuteranopia (green-blind)
#003372
Tritanopia (blue-blind)
#482C44
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #4e1174;
/* rgb */ color: rgb(78, 17, 116);
/* oklch */ color: oklch(34.0% 0.155 307.6);
Tailwind
colors: {
  custom: {
    50: '#84589d',
    500: '#4e1174',
    950: '#000000',
  },
}
SCSS
$custom: #4e1174;
$custom-light: #84589d;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1174",
  "rgb": {
    "r": 78,
    "g": 17,
    "b": 116
  },
  "hsl": {
    "h": 276.97,
    "s": 74.436,
    "l": 26.078
  },
  "oklch": {
    "l": 0.34044,
    "c": 0.15533,
    "h": 307.6
  },
  "luminance": 0.03282
}

Semantic roles & 50–950 ramp

primary
#4E1174
secondary
#63AB36
accent
#F1377E
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4E1174

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

Preview Lab → · Contrast checker → · Palette generator →

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