#4E1A7B#4E1A7B

#4E1A7B is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.5% C 0.153 H 303.7°. Best body text is #FFFFFF at 11.95:1 contrast (WCAG AA passes).

Color values

HEX#4E1A7B
RGBrgb(78, 26, 123)
HSLhsl(272, 65%, 29%)
HSVhsv(272, 79%, 48%)
CMYKcmyk(36.6%, 78.9%, 0%, 51.8%)
CIE-LABlab(22.96, 42.50, -44.77)
CIE-LCHlch(22.96, 61.73, 313.51°)
OKLaboklab(35.51% 0.0851 -0.1276)
OKLCHoklch(35.51% 0.153 303.7)
XYZxyz(7.0856, 3.7886, 19.0930)
Luminance0.0379 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1A7B #477B1A
analogous
#1E1A7B #4E1A7B #7B1A78
triadic
#4E1A7B #7B4E1A #1A7B4E
tetradic
#4E1A7B #7B1E1A #477B1A #1A787B
square
#4E1A7B #7B1E1A #477B1A #1A787B
split-complementary
#4E1A7B #787B1A #1A7B1E
monochromatic
#100519 #2E0F48 #4E1A7B #6E25AE #8D3AD5

Accessibility & contrast

On white

11.95
#4E1A7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#4E1A7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1A7B
11.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1A7B#FFFFFF#000000##FFFFFF
##4E1A7B1.0011.951.7611.95
#FFFFFF11.951.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367E
Deuteranopia (green-blind)
#003779
Tritanopia (blue-blind)
#45334A
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #4e1a7b;
/* rgb */ color: rgb(78, 26, 123);
/* oklch */ color: oklch(35.5% 0.153 303.7);
Tailwind
colors: {
  custom: {
    50: '#845da2',
    500: '#4e1a7b',
    950: '#000000',
  },
}
SCSS
$custom: #4e1a7b;
$custom-light: #845da2;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1a7b",
  "rgb": {
    "r": 78,
    "g": 26,
    "b": 123
  },
  "hsl": {
    "h": 272.165,
    "s": 65.101,
    "l": 29.216
  },
  "oklch": {
    "l": 0.35506,
    "c": 0.15336,
    "h": 303.7
  },
  "luminance": 0.03789
}

Semantic roles & 50–950 ramp

primary
#4E1A7B
secondary
#74AF42
accent
#E8408E
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4E1A7B

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

Preview Lab → · Contrast checker → · Palette generator →

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