#4E1170#4E1170

#4E1170 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.7% C 0.151 H 309.3°. Best body text is #FFFFFF at 12.82:1 contrast (WCAG AA passes).

Color values

HEX#4E1170
RGBrgb(78, 17, 112)
HSLhsl(279, 74%, 25%)
HSVhsv(279, 85%, 44%)
CMYKcmyk(30.4%, 84.8%, 0%, 56.1%)
CIE-LABlab(20.79, 43.41, -41.25)
CIE-LCHlch(20.79, 59.88, 316.46°)
OKLaboklab(33.69% 0.0959 -0.1172)
OKLCHoklch(33.69% 0.151 309.3)
XYZxyz(6.2664, 3.1906, 15.6118)
Luminance0.0319 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1170 #337011
analogous
#1E1170 #4E1170 #701162
triadic
#4E1170 #704E11 #11704E
tetradic
#4E1170 #701E11 #337011 #116270
square
#4E1170 #701E11 #337011 #116270
split-complementary
#4E1170 #627011 #11701E
monochromatic
#13041B #29093B #4E1170 #7319A5 #9821DA

Accessibility & contrast

On white

12.82
#4E1170 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#4E1170 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1170
12.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1170#FFFFFF#000000##FFFFFF
##4E11701.0012.821.6412.82
#FFFFFF12.821.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003073
Deuteranopia (green-blind)
#00336E
Tritanopia (blue-blind)
#492A41
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #4e1170;
/* rgb */ color: rgb(78, 17, 112);
/* oklch */ color: oklch(33.7% 0.151 309.3);
Tailwind
colors: {
  custom: {
    50: '#84589a',
    500: '#4e1170',
    950: '#000000',
  },
}
SCSS
$custom: #4e1170;
$custom-light: #84589a;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1170",
  "rgb": {
    "r": 78,
    "g": 17,
    "b": 112
  },
  "hsl": {
    "h": 278.526,
    "s": 73.643,
    "l": 25.294
  },
  "oklch": {
    "l": 0.33694,
    "c": 0.15141,
    "h": 309.3
  },
  "luminance": 0.0319
}

Semantic roles & 50–950 ramp

primary
#4E1170
secondary
#5EA735
accent
#F0377A
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4E1170

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

Preview Lab → · Contrast checker → · Palette generator →

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