#4E1E79#4E1E79

#4E1E79 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.8% C 0.146 H 303.8°. Best body text is #FFFFFF at 11.76:1 contrast (WCAG AA passes).

Color values

HEX#4E1E79
RGBrgb(78, 30, 121)
HSLhsl(272, 60%, 30%)
HSVhsv(272, 75%, 47%)
CMYKcmyk(35.5%, 75.2%, 0%, 52.5%)
CIE-LABlab(23.43, 40.17, -42.73)
CIE-LCHlch(23.43, 58.65, 313.23°)
OKLaboklab(35.79% 0.0815 -0.1216)
OKLCHoklch(35.79% 0.146 303.8)
XYZxyz(7.0566, 3.9287, 18.4720)
Luminance0.0393 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1E79 #49791E
analogous
#201E79 #4E1E79 #791E77
triadic
#4E1E79 #794E1E #1E794E
tetradic
#4E1E79 #79201E #49791E #1E7779
square
#4E1E79 #79201E #49791E #1E7779
split-complementary
#4E1E79 #77791E #1E7920
monochromatic
#100619 #2E1248 #4E1E79 #6E2AAA #8D41D0

Accessibility & contrast

On white

11.76
#4E1E79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E1E79
11.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1E79#FFFFFF#000000##FFFFFF
##4E1E791.0011.761.7911.76
#FFFFFF11.761.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.761.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4e1e79;
/* rgb */ color: rgb(78, 30, 121);
/* oklch */ color: oklch(35.8% 0.146 303.8);
Tailwind
colors: {
  custom: {
    50: '#845fa0',
    500: '#4e1e79',
    950: '#000000',
  },
}
SCSS
$custom: #4e1e79;
$custom-light: #845fa0;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1e79",
  "rgb": {
    "r": 78,
    "g": 30,
    "b": 121
  },
  "hsl": {
    "h": 271.648,
    "s": 60.265,
    "l": 29.608
  },
  "oklch": {
    "l": 0.35788,
    "c": 0.14642,
    "h": 303.8
  },
  "luminance": 0.03929
}

Semantic roles & 50–950 ramp

primary
#4E1E79
secondary
#77AD46
accent
#E34490
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B050F
muted
#7C797E

Preview Lab

Preview with #4E1E79

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

Preview Lab → · Contrast checker → · Palette generator →

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