#4E1F96#4E1F96

#4E1F96 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.5% C 0.178 H 294.3°. Best body text is #FFFFFF at 10.71:1 contrast (WCAG AA passes).

Color values

HEX#4E1F96
RGBrgb(78, 31, 150)
HSLhsl(264, 66%, 35%)
HSVhsv(264, 79%, 59%)
CMYKcmyk(48%, 79.3%, 0%, 41.2%)
CIE-LABlab(26.16, 47.30, -56.42)
CIE-LCHlch(26.16, 73.63, 309.98°)
OKLaboklab(38.5% 0.0731 -0.1618)
OKLCHoklch(38.5% 0.178 294.3)
XYZxyz(9.1354, 4.8014, 29.2937)
Luminance0.0480 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1F96 #67961F
analogous
#1F2C96 #4E1F96 #891F96
triadic
#4E1F96 #964E1F #1F964E
tetradic
#4E1F96 #961F2C #67961F #1F9689
square
#4E1F96 #961F2C #67961F #1F9689
split-complementary
#4E1F96 #96891F #2C961F
monochromatic
#190A31 #341563 #4E1F96 #6829C9 #8954DC

Accessibility & contrast

On white

10.71
#4E1F96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#4E1F96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1F96
10.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1F96#FFFFFF#000000##FFFFFF
##4E1F961.0010.711.9610.71
#FFFFFF10.711.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F99
Deuteranopia (green-blind)
#003C94
Tritanopia (blue-blind)
#38405A
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4e1f96;
/* rgb */ color: rgb(78, 31, 150);
/* oklch */ color: oklch(38.5% 0.178 294.3);
Tailwind
colors: {
  custom: {
    50: '#8761b6',
    500: '#4e1f96',
    950: '#000000',
  },
}
SCSS
$custom: #4e1f96;
$custom-light: #8761b6;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1f96",
  "rgb": {
    "r": 78,
    "g": 31,
    "b": 150
  },
  "hsl": {
    "h": 263.697,
    "s": 65.746,
    "l": 35.49
  },
  "oklch": {
    "l": 0.38497,
    "c": 0.17758,
    "h": 294.3
  },
  "luminance": 0.04802
}

Semantic roles & 50–950 ramp

primary
#4E1F96
secondary
#94BF52
accent
#E93FA6
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #4E1F96

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

Preview Lab → · Contrast checker → · Palette generator →

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