#4E1A74#4E1A74

#4E1A74 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.9% C 0.146 H 306.5°. Best body text is #FFFFFF at 12.18:1 contrast (WCAG AA passes).

Color values

HEX#4E1A74
RGBrgb(78, 26, 116)
HSLhsl(275, 63%, 28%)
HSVhsv(275, 78%, 45%)
CMYKcmyk(32.8%, 77.6%, 0%, 54.5%)
CIE-LABlab(22.37, 40.77, -41.26)
CIE-LCHlch(22.37, 58.00, 314.66°)
OKLaboklab(34.91% 0.0867 -0.1173)
OKLCHoklch(34.91% 0.146 306.5)
XYZxyz(6.6630, 3.6195, 16.8672)
Luminance0.0362 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1A74 #40741A
analogous
#211A74 #4E1A74 #741A6D
triadic
#4E1A74 #744E1A #1A744E
tetradic
#4E1A74 #74211A #40741A #1A6D74
square
#4E1A74 #74211A #40741A #1A6D74
split-complementary
#4E1A74 #6D741A #1A7421
monochromatic
#110619 #2C0F42 #4E1A74 #7025A6 #9036D2

Accessibility & contrast

On white

12.18
#4E1A74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#4E1A74 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1A74
12.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1A74#FFFFFF#000000##FFFFFF
##4E1A741.0012.181.7212.18
#FFFFFF12.181.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003477
Deuteranopia (green-blind)
#003672
Tritanopia (blue-blind)
#473046
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4e1a74;
/* rgb */ color: rgb(78, 26, 116);
/* oklch */ color: oklch(34.9% 0.146 306.5);
Tailwind
colors: {
  custom: {
    50: '#845c9d',
    500: '#4e1a74',
    950: '#000000',
  },
}
SCSS
$custom: #4e1a74;
$custom-light: #845c9d;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1a74",
  "rgb": {
    "r": 78,
    "g": 26,
    "b": 116
  },
  "hsl": {
    "h": 274.667,
    "s": 63.38,
    "l": 27.843
  },
  "oklch": {
    "l": 0.34908,
    "c": 0.14583,
    "h": 306.5
  },
  "luminance": 0.03619
}

Semantic roles & 50–950 ramp

primary
#4E1A74
secondary
#6DA941
accent
#E64187
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4E1A74

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

Preview Lab → · Contrast checker → · Palette generator →

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