#4E187A#4E187A

#4E187A is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.2% C 0.154 H 304.3°. Best body text is #FFFFFF at 12.10:1 contrast (WCAG AA passes).

Color values

HEX#4E187A
RGBrgb(78, 24, 122)
HSLhsl(273, 67%, 29%)
HSVhsv(273, 80%, 48%)
CMYKcmyk(36.1%, 80.3%, 0%, 52.2%)
CIE-LABlab(22.58, 43.11, -44.76)
CIE-LCHlch(22.58, 62.14, 313.92°)
OKLaboklab(35.21% 0.0872 -0.1275)
OKLCHoklch(35.21% 0.154 304.3)
XYZxyz(6.9806, 3.6781, 18.7508)
Luminance0.0368 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E187A #447A18
analogous
#1D187A #4E187A #7A1875
triadic
#4E187A #7A4E18 #187A4E
tetradic
#4E187A #7A1D18 #447A18 #18757A
square
#4E187A #7A1D18 #447A18 #18757A
split-complementary
#4E187A #757A18 #187A1D
monochromatic
#10051A #2D0E47 #4E187A #6F22AD #8E35D7

Accessibility & contrast

On white

12.10
#4E187A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#4E187A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E187A
12.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E187A#FFFFFF#000000##FFFFFF
##4E187A1.0012.101.7412.10
#FFFFFF12.101.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357D
Deuteranopia (green-blind)
#003678
Tritanopia (blue-blind)
#453149
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #4e187a;
/* rgb */ color: rgb(78, 24, 122);
/* oklch */ color: oklch(35.2% 0.154 304.3);
Tailwind
colors: {
  custom: {
    50: '#845ca1',
    500: '#4e187a',
    950: '#000000',
  },
}
SCSS
$custom: #4e187a;
$custom-light: #845ca1;
$custom-dark: #000000;
JSON
{
  "hex": "#4e187a",
  "rgb": {
    "r": 78,
    "g": 24,
    "b": 122
  },
  "hsl": {
    "h": 273.061,
    "s": 67.123,
    "l": 28.627
  },
  "oklch": {
    "l": 0.35211,
    "c": 0.15449,
    "h": 304.3
  },
  "luminance": 0.03678
}

Semantic roles & 50–950 ramp

primary
#4E187A
secondary
#71AF3F
accent
#EA3E8B
background
#F8F5FA
surface
#F0E9F3
border
#CBC5CD
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4E187A

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

Preview Lab → · Contrast checker → · Palette generator →

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