#4E1D7B#4E1D7B

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

Color values

HEX#4E1D7B
RGBrgb(78, 29, 123)
HSLhsl(271, 62%, 30%)
HSVhsv(271, 76%, 48%)
CMYKcmyk(36.6%, 76.4%, 0%, 51.8%)
CIE-LABlab(23.43, 41.15, -44.00)
CIE-LCHlch(23.43, 60.25, 313.08°)
OKLaboklab(35.84% 0.0821 -0.1254)
OKLCHoklch(35.84% 0.15 303.2)
XYZxyz(7.1556, 3.9285, 19.1163)
Luminance0.0393 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1D7B #4A7B1D
analogous
#1F1D7B #4E1D7B #7B1D79
triadic
#4E1D7B #7B4E1D #1D7B4E
tetradic
#4E1D7B #7B1F1D #4A7B1D #1D797B
square
#4E1D7B #7B1F1D #4A7B1D #1D797B
split-complementary
#4E1D7B #797B1D #1D7B1F
monochromatic
#100619 #2F1149 #4E1D7B #6D29AD #8C40D2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4E1D7B#FFFFFF#000000##FFFFFF
##4E1D7B1.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)
#00377E
Deuteranopia (green-blind)
#003879
Tritanopia (blue-blind)
#45344A
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4e1d7b;
/* rgb */ color: rgb(78, 29, 123);
/* oklch */ color: oklch(35.8% 0.150 303.2);
Tailwind
colors: {
  custom: {
    50: '#845ea2',
    500: '#4e1d7b',
    950: '#000000',
  },
}
SCSS
$custom: #4e1d7b;
$custom-light: #845ea2;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1d7b",
  "rgb": {
    "r": 78,
    "g": 29,
    "b": 123
  },
  "hsl": {
    "h": 271.277,
    "s": 61.842,
    "l": 29.804
  },
  "oklch": {
    "l": 0.3584,
    "c": 0.14986,
    "h": 303.2
  },
  "luminance": 0.03928
}

Semantic roles & 50–950 ramp

primary
#4E1D7B
secondary
#78AF45
accent
#E54390
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4E1D7B

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

Preview Lab → · Contrast checker → · Palette generator →

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