#4E1F79#4E1F79

#4E1F79 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 35.9% C 0.145 H 303.7°. Best body text is #FFFFFF at 11.69:1 contrast (WCAG AA passes).

Color values

HEX#4E1F79
RGBrgb(78, 31, 121)
HSLhsl(271, 59%, 30%)
HSVhsv(271, 74%, 47%)
CMYKcmyk(35.5%, 74.4%, 0%, 52.5%)
CIE-LABlab(23.61, 39.69, -42.45)
CIE-LCHlch(23.61, 58.11, 313.07°)
OKLaboklab(35.91% 0.0804 -0.1208)
OKLCHoklch(35.91% 0.145 303.7)
XYZxyz(7.0823, 3.9802, 18.4806)
Luminance0.0398 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1F79 #4A791F
analogous
#211F79 #4E1F79 #791F77
triadic
#4E1F79 #794E1F #1F794E
tetradic
#4E1F79 #79211F #4A791F #1F7779
square
#4E1F79 #79211F #4A791F #1F7779
split-complementary
#4E1F79 #77791F #1F7921
monochromatic
#100618 #2F1348 #4E1F79 #6D2BAA #8C43CF

Accessibility & contrast

On white

11.69
#4E1F79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#4E1F79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1F79
11.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1F79#FFFFFF#000000##FFFFFF
##4E1F791.0011.691.8011.69
#FFFFFF11.691.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377C
Deuteranopia (green-blind)
#003877
Tritanopia (blue-blind)
#46354A
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4e1f79;
/* rgb */ color: rgb(78, 31, 121);
/* oklch */ color: oklch(35.9% 0.145 303.7);
Tailwind
colors: {
  custom: {
    50: '#845fa0',
    500: '#4e1f79',
    950: '#000000',
  },
}
SCSS
$custom: #4e1f79;
$custom-light: #845fa0;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1f79",
  "rgb": {
    "r": 78,
    "g": 31,
    "b": 121
  },
  "hsl": {
    "h": 271.333,
    "s": 59.211,
    "l": 29.804
  },
  "oklch": {
    "l": 0.3591,
    "c": 0.14515,
    "h": 303.7
  },
  "luminance": 0.0398
}

Semantic roles & 50–950 ramp

primary
#4E1F79
secondary
#78AC47
accent
#E24590
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B050F
muted
#7C797E

Preview Lab

Preview with #4E1F79

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

Preview Lab → · Contrast checker → · Palette generator →

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