#4E1B7B#4E1B7B

#4E1B7B is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.6% C 0.152 H 303.5°. Best body text is #FFFFFF at 11.89:1 contrast (WCAG AA passes).

Color values

HEX#4E1B7B
RGBrgb(78, 27, 123)
HSLhsl(272, 64%, 29%)
HSVhsv(272, 78%, 48%)
CMYKcmyk(36.6%, 78%, 0%, 51.8%)
CIE-LABlab(23.11, 42.06, -44.52)
CIE-LCHlch(23.11, 61.25, 313.37°)
OKLaboklab(35.61% 0.0841 -0.1269)
OKLCHoklch(35.61% 0.152 303.5)
XYZxyz(7.1081, 3.8336, 19.1005)
Luminance0.0383 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1B7B #487B1B
analogous
#1E1B7B #4E1B7B #7B1B78
triadic
#4E1B7B #7B4E1B #1B7B4E
tetradic
#4E1B7B #7B1E1B #487B1B #1B787B
square
#4E1B7B #7B1E1B #487B1B #1B787B
split-complementary
#4E1B7B #787B1B #1B7B1E
monochromatic
#100619 #2E1049 #4E1B7B #6E26AD #8D3CD4

Accessibility & contrast

On white

11.89
#4E1B7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#4E1B7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1B7B
11.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1B7B#FFFFFF#000000##FFFFFF
##4E1B7B1.0011.891.7711.89
#FFFFFF11.891.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367E
Deuteranopia (green-blind)
#003779
Tritanopia (blue-blind)
#45334A
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #4e1b7b;
/* rgb */ color: rgb(78, 27, 123);
/* oklch */ color: oklch(35.6% 0.152 303.5);
Tailwind
colors: {
  custom: {
    50: '#845da2',
    500: '#4e1b7b',
    950: '#000000',
  },
}
SCSS
$custom: #4e1b7b;
$custom-light: #845da2;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1b7b",
  "rgb": {
    "r": 78,
    "g": 27,
    "b": 123
  },
  "hsl": {
    "h": 271.875,
    "s": 64,
    "l": 29.412
  },
  "oklch": {
    "l": 0.35614,
    "c": 0.15222,
    "h": 303.5
  },
  "luminance": 0.03834
}

Semantic roles & 50–950 ramp

primary
#4E1B7B
secondary
#76AF43
accent
#E7418F
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4E1B7B

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

Preview Lab → · Contrast checker → · Palette generator →

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