#4E1B7E#4E1B7E

#4E1B7E is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.9% C 0.155 H 302.4°. Best body text is #FFFFFF at 11.78:1 contrast (WCAG AA passes).

Color values

HEX#4E1B7E
RGBrgb(78, 27, 126)
HSLhsl(271, 65%, 30%)
HSVhsv(271, 79%, 49%)
CMYKcmyk(38.1%, 78.6%, 0%, 50.6%)
CIE-LABlab(23.37, 42.82, -46.01)
CIE-LCHlch(23.37, 62.85, 312.95°)
OKLaboklab(35.88% 0.0833 -0.1312)
OKLCHoklch(35.88% 0.155 302.4)
XYZxyz(7.2988, 3.9099, 20.1048)
Luminance0.0391 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1B7E #4B7E1B
analogous
#1C1B7E #4E1B7E #7E1B7D
triadic
#4E1B7E #7E4E1B #1B7E4E
tetradic
#4E1B7E #7E1C1B #4B7E1B #1B7D7E
square
#4E1B7E #7E1C1B #4B7E1B #1B7D7E
split-complementary
#4E1B7E #7D7E1B #1B7E1C
monochromatic
#100519 #2F104C #4E1B7E #6D26B0 #8C3ED6

Accessibility & contrast

On white

11.78
#4E1B7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E1B7E
11.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1B7E#FFFFFF#000000##FFFFFF
##4E1B7E1.0011.781.7811.78
#FFFFFF11.781.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.781.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4e1b7e;
/* rgb */ color: rgb(78, 27, 126);
/* oklch */ color: oklch(35.9% 0.155 302.4);
Tailwind
colors: {
  custom: {
    50: '#855da4',
    500: '#4e1b7e',
    950: '#000000',
  },
}
SCSS
$custom: #4e1b7e;
$custom-light: #855da4;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1b7e",
  "rgb": {
    "r": 78,
    "g": 27,
    "b": 126
  },
  "hsl": {
    "h": 270.909,
    "s": 64.706,
    "l": 30
  },
  "oklch": {
    "l": 0.35875,
    "c": 0.15547,
    "h": 302.4
  },
  "luminance": 0.0391
}

Semantic roles & 50–950 ramp

primary
#4E1B7E
secondary
#79B243
accent
#E84091
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4E1B7E

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

Preview Lab → · Contrast checker → · Palette generator →

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