#4E1A7F#4E1A7F

#4E1A7F is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.9% C 0.158 H 302.2°. Best body text is #FFFFFF at 11.81:1 contrast (WCAG AA passes).

Color values

HEX#4E1A7F
RGBrgb(78, 26, 127)
HSLhsl(271, 66%, 30%)
HSVhsv(271, 80%, 50%)
CMYKcmyk(38.6%, 79.5%, 0%, 50.2%)
CIE-LABlab(23.31, 43.51, -46.74)
CIE-LCHlch(23.31, 63.86, 312.95°)
OKLaboklab(35.86% 0.084 -0.1334)
OKLCHoklch(35.86% 0.158 302.2)
XYZxyz(7.3411, 3.8908, 20.4388)
Luminance0.0389 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1A7F #4B7F1A
analogous
#1B1A7F #4E1A7F #7F1A7E
triadic
#4E1A7F #7F4E1A #1A7F4E
tetradic
#4E1A7F #7F1B1A #4B7F1A #1A7E7F
square
#4E1A7F #7F1B1A #4B7F1A #1A7E7F
split-complementary
#4E1A7F #7E7F1A #1A7F1B
monochromatic
#100519 #2F104C #4E1A7F #6D24B2 #8C3CD7

Accessibility & contrast

On white

11.81
#4E1A7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#4E1A7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1A7F
11.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1A7F#FFFFFF#000000##FFFFFF
##4E1A7F1.0011.811.7811.81
#FFFFFF11.811.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003782
Deuteranopia (green-blind)
#00377D
Tritanopia (blue-blind)
#43344C
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4e1a7f;
/* rgb */ color: rgb(78, 26, 127);
/* oklch */ color: oklch(35.9% 0.158 302.2);
Tailwind
colors: {
  custom: {
    50: '#855da5',
    500: '#4e1a7f',
    950: '#000000',
  },
}
SCSS
$custom: #4e1a7f;
$custom-light: #855da5;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1a7f",
  "rgb": {
    "r": 78,
    "g": 26,
    "b": 127
  },
  "hsl": {
    "h": 270.891,
    "s": 66.013,
    "l": 30
  },
  "oklch": {
    "l": 0.35857,
    "c": 0.15765,
    "h": 302.2
  },
  "luminance": 0.03891
}

Semantic roles & 50–950 ramp

primary
#4E1A7F
secondary
#79B342
accent
#E93F91
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #4E1A7F

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

Preview Lab → · Contrast checker → · Palette generator →

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