#4E1A7C#4E1A7C

#4E1A7C is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.6% C 0.154 H 303.3°. Best body text is #FFFFFF at 11.91:1 contrast (WCAG AA passes).

Color values

HEX#4E1A7C
RGBrgb(78, 26, 124)
HSLhsl(272, 65%, 29%)
HSVhsv(272, 79%, 49%)
CMYKcmyk(37.1%, 79%, 0%, 51.4%)
CIE-LABlab(23.05, 42.75, -45.27)
CIE-LCHlch(23.05, 62.27, 313.36°)
OKLaboklab(35.59% 0.0848 -0.1291)
OKLCHoklch(35.59% 0.154 303.3)
XYZxyz(7.1485, 3.8137, 19.4244)
Luminance0.0381 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1A7C #487C1A
analogous
#1D1A7C #4E1A7C #7C1A79
triadic
#4E1A7C #7C4E1A #1A7C4E
tetradic
#4E1A7C #7C1D1A #487C1A #1A797C
square
#4E1A7C #7C1D1A #487C1A #1A797C
split-complementary
#4E1A7C #797C1A #1A7C1D
monochromatic
#100519 #2E0F49 #4E1A7C #6E25AF #8D3BD6

Accessibility & contrast

On white

11.91
#4E1A7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E1A7C
11.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1A7C#FFFFFF#000000##FFFFFF
##4E1A7C1.0011.911.7611.91
#FFFFFF11.911.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.911.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4e1a7c;
/* rgb */ color: rgb(78, 26, 124);
/* oklch */ color: oklch(35.6% 0.154 303.3);
Tailwind
colors: {
  custom: {
    50: '#855da3',
    500: '#4e1a7c',
    950: '#000000',
  },
}
SCSS
$custom: #4e1a7c;
$custom-light: #855da3;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1a7c",
  "rgb": {
    "r": 78,
    "g": 26,
    "b": 124
  },
  "hsl": {
    "h": 271.837,
    "s": 65.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.35593,
    "c": 0.15443,
    "h": 303.3
  },
  "luminance": 0.03814
}

Semantic roles & 50–950 ramp

primary
#4E1A7C
secondary
#76B042
accent
#E8408F
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4E1A7C

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

Preview Lab → · Contrast checker → · Palette generator →

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