#4E1A97#4E1A97

#4E1A97 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 38.1% C 0.183 H 294.7°. Best body text is #FFFFFF at 10.95:1 contrast (WCAG AA passes).

Color values

HEX#4E1A97
RGBrgb(78, 26, 151)
HSLhsl(265, 71%, 35%)
HSVhsv(265, 83%, 59%)
CMYKcmyk(48.3%, 82.8%, 0%, 40.8%)
CIE-LABlab(25.54, 49.65, -58.05)
CIE-LCHlch(25.54, 76.39, 310.54°)
OKLaboklab(38.1% 0.0765 -0.1666)
OKLCHoklch(38.1% 0.183 294.7)
XYZxyz(9.0957, 4.5926, 29.6794)
Luminance0.0459 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1A97 #63971A
analogous
#1A2597 #4E1A97 #8D1A97
triadic
#4E1A97 #974E1A #1A974E
tetradic
#4E1A97 #971A25 #63971A #1A978D
square
#4E1A97 #971A25 #63971A #1A978D
split-complementary
#4E1A97 #978D1A #25971A
monochromatic
#18082F #331163 #4E1A97 #6923CB #894BE0

Accessibility & contrast

On white

10.95
#4E1A97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#4E1A97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1A97
10.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1A97#FFFFFF#000000##FFFFFF
##4E1A971.0010.951.9210.95
#FFFFFF10.951.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E9A
Deuteranopia (green-blind)
#003A95
Tritanopia (blue-blind)
#383F5A
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #4e1a97;
/* rgb */ color: rgb(78, 26, 151);
/* oklch */ color: oklch(38.1% 0.183 294.7);
Tailwind
colors: {
  custom: {
    50: '#885eb7',
    500: '#4e1a97',
    950: '#000000',
  },
}
SCSS
$custom: #4e1a97;
$custom-light: #885eb7;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1a97",
  "rgb": {
    "r": 78,
    "g": 26,
    "b": 151
  },
  "hsl": {
    "h": 264.96,
    "s": 70.621,
    "l": 34.706
  },
  "oklch": {
    "l": 0.38096,
    "c": 0.18329,
    "h": 294.7
  },
  "luminance": 0.04593
}

Semantic roles & 50–950 ramp

primary
#4E1A97
secondary
#90C24B
accent
#ED3AA3
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #4E1A97

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

Preview Lab → · Contrast checker → · Palette generator →

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