#4E1870#4E1870

#4E1870 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.4% C 0.144 H 308.5°. Best body text is #FFFFFF at 12.44:1 contrast (WCAG AA passes).

Color values

HEX#4E1870
RGBrgb(78, 24, 112)
HSLhsl(277, 65%, 27%)
HSVhsv(277, 79%, 44%)
CMYKcmyk(30.4%, 78.6%, 0%, 56.1%)
CIE-LABlab(21.74, 40.68, -39.71)
CIE-LCHlch(21.74, 56.85, 315.69°)
OKLaboklab(34.36% 0.0895 -0.1127)
OKLCHoklch(34.36% 0.144 308.5)
XYZxyz(6.3925, 3.4429, 15.6539)
Luminance0.0344 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1870 #3A7018
analogous
#221870 #4E1870 #701866
triadic
#4E1870 #704E18 #18704E
tetradic
#4E1870 #702218 #3A7018 #186670
square
#4E1870 #702218 #3A7018 #186670
split-complementary
#4E1870 #667018 #187022
monochromatic
#120519 #2B0D3E #4E1870 #7123A2 #9430D3

Accessibility & contrast

On white

12.44
#4E1870 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#4E1870 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1870
12.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1870#FFFFFF#000000##FFFFFF
##4E18701.0012.441.6912.44
#FFFFFF12.441.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003272
Deuteranopia (green-blind)
#00356E
Tritanopia (blue-blind)
#492D43
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #4e1870;
/* rgb */ color: rgb(78, 24, 112);
/* oklch */ color: oklch(34.4% 0.144 308.5);
Tailwind
colors: {
  custom: {
    50: '#835b9a',
    500: '#4e1870',
    950: '#000000',
  },
}
SCSS
$custom: #4e1870;
$custom-light: #835b9a;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1870",
  "rgb": {
    "r": 78,
    "g": 24,
    "b": 112
  },
  "hsl": {
    "h": 276.818,
    "s": 64.706,
    "l": 26.667
  },
  "oklch": {
    "l": 0.34357,
    "c": 0.14396,
    "h": 308.5
  },
  "luminance": 0.03443
}

Semantic roles & 50–950 ramp

primary
#4E1870
secondary
#66A53E
accent
#E84081
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4E1870

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

Preview Lab → · Contrast checker → · Palette generator →

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