#4E197A#4E197A

#4E197A is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.3% C 0.153 H 304.2°. Best body text is #FFFFFF at 12.04:1 contrast (WCAG AA passes).

Color values

HEX#4E197A
RGBrgb(78, 25, 122)
HSLhsl(273, 66%, 29%)
HSVhsv(273, 80%, 48%)
CMYKcmyk(36.1%, 79.5%, 0%, 52.2%)
CIE-LABlab(22.72, 42.69, -44.52)
CIE-LCHlch(22.72, 61.68, 313.80°)
OKLaboklab(35.31% 0.0862 -0.1269)
OKLCHoklch(35.31% 0.153 304.2)
XYZxyz(7.0016, 3.7201, 18.7578)
Luminance0.0372 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E197A #457A19
analogous
#1E197A #4E197A #7A1976
triadic
#4E197A #7A4E19 #197A4E
tetradic
#4E197A #7A1E19 #457A19 #19767A
square
#4E197A #7A1E19 #457A19 #19767A
split-complementary
#4E197A #767A19 #197A1E
monochromatic
#100519 #2E0F47 #4E197A #6E23AD #8E37D6

Accessibility & contrast

On white

12.04
#4E197A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E197A
12.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E197A#FFFFFF#000000##FFFFFF
##4E197A1.0012.041.7412.04
#FFFFFF12.041.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.041.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4e197a;
/* rgb */ color: rgb(78, 25, 122);
/* oklch */ color: oklch(35.3% 0.153 304.2);
Tailwind
colors: {
  custom: {
    50: '#845ca1',
    500: '#4e197a',
    950: '#000000',
  },
}
SCSS
$custom: #4e197a;
$custom-light: #845ca1;
$custom-dark: #000000;
JSON
{
  "hex": "#4e197a",
  "rgb": {
    "r": 78,
    "g": 25,
    "b": 122
  },
  "hsl": {
    "h": 272.784,
    "s": 65.986,
    "l": 28.824
  },
  "oklch": {
    "l": 0.35313,
    "c": 0.1534,
    "h": 304.2
  },
  "luminance": 0.0372
}

Semantic roles & 50–950 ramp

primary
#4E197A
secondary
#72AF40
accent
#E93F8C
background
#F8F5FA
surface
#F0E9F3
border
#CBC5CD
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4E197A

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

Preview Lab → · Contrast checker → · Palette generator →

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