#4E1F78#4E1F78

#4E1F78 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 35.8% C 0.144 H 304.0°. Best body text is #FFFFFF at 11.72:1 contrast (WCAG AA passes).

Color values

HEX#4E1F78
RGBrgb(78, 31, 120)
HSLhsl(272, 59%, 30%)
HSVhsv(272, 74%, 47%)
CMYKcmyk(35%, 74.2%, 0%, 52.9%)
CIE-LABlab(23.52, 39.43, -41.94)
CIE-LCHlch(23.52, 57.57, 313.23°)
OKLaboklab(35.83% 0.0806 -0.1193)
OKLCHoklch(35.83% 0.144 304)
XYZxyz(7.0213, 3.9558, 18.1593)
Luminance0.0396 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1F78 #49781F
analogous
#211F78 #4E1F78 #781F76
triadic
#4E1F78 #784E1F #1F784E
tetradic
#4E1F78 #78211F #49781F #1F7678
square
#4E1F78 #78211F #49781F #1F7678
split-complementary
#4E1F78 #76781F #1F7821
monochromatic
#100618 #2E1247 #4E1F78 #6E2CA9 #8D43CE

Accessibility & contrast

On white

11.72
#4E1F78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#4E1F78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1F78
11.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1F78#FFFFFF#000000##FFFFFF
##4E1F781.0011.721.7911.72
#FFFFFF11.721.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377B
Deuteranopia (green-blind)
#003876
Tritanopia (blue-blind)
#463449
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4e1f78;
/* rgb */ color: rgb(78, 31, 120);
/* oklch */ color: oklch(35.8% 0.144 304.0);
Tailwind
colors: {
  custom: {
    50: '#845fa0',
    500: '#4e1f78',
    950: '#000000',
  },
}
SCSS
$custom: #4e1f78;
$custom-light: #845fa0;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1f78",
  "rgb": {
    "r": 78,
    "g": 31,
    "b": 120
  },
  "hsl": {
    "h": 271.685,
    "s": 58.94,
    "l": 29.608
  },
  "oklch": {
    "l": 0.35827,
    "c": 0.14402,
    "h": 304
  },
  "luminance": 0.03956
}

Semantic roles & 50–950 ramp

primary
#4E1F78
secondary
#77AB47
accent
#E24690
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B050F
muted
#7C797E

Preview Lab

Preview with #4E1F78

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

Preview Lab → · Contrast checker → · Palette generator →

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