#4E1D79#4E1D79

#4E1D79 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.7% C 0.148 H 304.0°. Best body text is #FFFFFF at 11.83:1 contrast (WCAG AA passes).

Color values

HEX#4E1D79
RGBrgb(78, 29, 121)
HSLhsl(272, 61%, 29%)
HSVhsv(272, 76%, 47%)
CMYKcmyk(35.5%, 76%, 0%, 52.5%)
CIE-LABlab(23.27, 40.64, -43.00)
CIE-LCHlch(23.27, 59.17, 313.39°)
OKLaboklab(35.67% 0.0826 -0.1224)
OKLCHoklch(35.67% 0.148 304)
XYZxyz(7.0316, 3.8789, 18.4637)
Luminance0.0388 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1D79 #48791D
analogous
#201D79 #4E1D79 #791D76
triadic
#4E1D79 #794E1D #1D794E
tetradic
#4E1D79 #79201D #48791D #1D7679
square
#4E1D79 #79201D #48791D #1D7679
split-complementary
#4E1D79 #76791D #1D7920
monochromatic
#100619 #2E1148 #4E1D79 #6E29AA #8D3FD1

Accessibility & contrast

On white

11.83
#4E1D79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#4E1D79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1D79
11.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1D79#FFFFFF#000000##FFFFFF
##4E1D791.0011.831.7811.83
#FFFFFF11.831.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367C
Deuteranopia (green-blind)
#003777
Tritanopia (blue-blind)
#463349
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #4e1d79;
/* rgb */ color: rgb(78, 29, 121);
/* oklch */ color: oklch(35.7% 0.148 304.0);
Tailwind
colors: {
  custom: {
    50: '#845ea0',
    500: '#4e1d79',
    950: '#000000',
  },
}
SCSS
$custom: #4e1d79;
$custom-light: #845ea0;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1d79",
  "rgb": {
    "r": 78,
    "g": 29,
    "b": 121
  },
  "hsl": {
    "h": 271.957,
    "s": 61.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.3567,
    "c": 0.14765,
    "h": 304
  },
  "luminance": 0.03879
}

Semantic roles & 50–950 ramp

primary
#4E1D79
secondary
#76AD45
accent
#E4438F
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B050F
muted
#7C797E

Preview Lab

Preview with #4E1D79

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

Preview Lab → · Contrast checker → · Palette generator →

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