#4E1A75#4E1A75

#4E1A75 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.0% C 0.147 H 306.1°. Best body text is #FFFFFF at 12.15:1 contrast (WCAG AA passes).

Color values

HEX#4E1A75
RGBrgb(78, 26, 117)
HSLhsl(274, 64%, 28%)
HSVhsv(274, 78%, 46%)
CMYKcmyk(33.3%, 77.8%, 0%, 54.1%)
CIE-LABlab(22.45, 41.02, -41.76)
CIE-LCHlch(22.45, 58.54, 314.48°)
OKLaboklab(34.99% 0.0865 -0.1188)
OKLCHoklch(34.99% 0.147 306.1)
XYZxyz(6.7215, 3.6429, 17.1752)
Luminance0.0364 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1A75 #41751A
analogous
#211A75 #4E1A75 #751A6E
triadic
#4E1A75 #754E1A #1A754E
tetradic
#4E1A75 #75211A #41751A #1A6E75
square
#4E1A75 #75211A #41751A #1A6E75
split-complementary
#4E1A75 #6E751A #1A7521
monochromatic
#110619 #2D0F43 #4E1A75 #6F25A7 #9037D3

Accessibility & contrast

On white

12.15
#4E1A75 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#4E1A75 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1A75
12.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1A75#FFFFFF#000000##FFFFFF
##4E1A751.0012.151.7312.15
#FFFFFF12.151.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003478
Deuteranopia (green-blind)
#003673
Tritanopia (blue-blind)
#473046
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #4e1a75;
/* rgb */ color: rgb(78, 26, 117);
/* oklch */ color: oklch(35.0% 0.147 306.1);
Tailwind
colors: {
  custom: {
    50: '#845c9d',
    500: '#4e1a75',
    950: '#000000',
  },
}
SCSS
$custom: #4e1a75;
$custom-light: #845c9d;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1a75",
  "rgb": {
    "r": 78,
    "g": 26,
    "b": 117
  },
  "hsl": {
    "h": 274.286,
    "s": 63.636,
    "l": 28.039
  },
  "oklch": {
    "l": 0.34992,
    "c": 0.14691,
    "h": 306.1
  },
  "luminance": 0.03643
}

Semantic roles & 50–950 ramp

primary
#4E1A75
secondary
#6EAA41
accent
#E74188
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4E1A75

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

Preview Lab → · Contrast checker → · Palette generator →

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