#4E1A6A#4E1A6A

#4E1A6A is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.1% C 0.135 H 310.9°. Best body text is #FFFFFF at 12.50:1 contrast (WCAG AA passes).

Color values

HEX#4E1A6A
RGBrgb(78, 26, 106)
HSLhsl(279, 61%, 26%)
HSVhsv(279, 75%, 42%)
CMYKcmyk(26.4%, 75.5%, 0%, 58.4%)
CIE-LABlab(21.58, 38.35, -36.08)
CIE-LCHlch(21.58, 52.66, 316.75°)
OKLaboklab(34.09% 0.0885 -0.1021)
OKLCHoklch(34.09% 0.135 310.9)
XYZxyz(6.1123, 3.3992, 13.9670)
Luminance0.0340 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1A6A #366A1A
analogous
#261A6A #4E1A6A #6A1A5E
triadic
#4E1A6A #6A4E1A #1A6A4E
tetradic
#4E1A6A #6A261A #366A1A #1A5E6A
square
#4E1A6A #6A261A #366A1A #1A5E6A
split-complementary
#4E1A6A #5E6A1A #1A6A26
monochromatic
#120619 #2A0E39 #4E1A6A #72269B #9632CC

Accessibility & contrast

On white

12.50
#4E1A6A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#4E1A6A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1A6A
12.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1A6A#FFFFFF#000000##FFFFFF
##4E1A6A1.0012.501.6812.50
#FFFFFF12.501.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00316C
Deuteranopia (green-blind)
#0D3568
Tritanopia (blue-blind)
#4A2C40
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #4e1a6a;
/* rgb */ color: rgb(78, 26, 106);
/* oklch */ color: oklch(34.1% 0.135 310.9);
Tailwind
colors: {
  custom: {
    50: '#835c95',
    500: '#4e1a6a',
    950: '#000000',
  },
}
SCSS
$custom: #4e1a6a;
$custom-light: #835c95;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1a6a",
  "rgb": {
    "r": 78,
    "g": 26,
    "b": 106
  },
  "hsl": {
    "h": 279,
    "s": 60.606,
    "l": 25.882
  },
  "oklch": {
    "l": 0.34094,
    "c": 0.13509,
    "h": 310.9
  },
  "luminance": 0.03399
}

Semantic roles & 50–950 ramp

primary
#4E1A6A
secondary
#629F40
accent
#E4447C
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #4E1A6A

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

Preview Lab → · Contrast checker → · Palette generator →

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