#4E1B7D#4E1B7D

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

Color values

HEX#4E1B7D
RGBrgb(78, 27, 125)
HSLhsl(271, 64%, 30%)
HSVhsv(271, 78%, 49%)
CMYKcmyk(37.6%, 78.4%, 0%, 51%)
CIE-LABlab(23.28, 42.57, -45.51)
CIE-LCHlch(23.28, 62.32, 313.08°)
OKLaboklab(35.79% 0.0836 -0.1298)
OKLCHoklch(35.79% 0.154 302.8)
XYZxyz(7.2346, 3.8842, 19.7666)
Luminance0.0388 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1B7D #4A7D1B
analogous
#1D1B7D #4E1B7D #7D1B7B
triadic
#4E1B7D #7D4E1B #1B7D4E
tetradic
#4E1B7D #7D1D1B #4A7D1B #1B7B7D
square
#4E1B7D #7D1D1B #4A7D1B #1B7B7D
split-complementary
#4E1B7D #7B7D1B #1B7D1D
monochromatic
#100519 #2F104B #4E1B7D #6D26AF #8C3DD5

Accessibility & contrast

On white

11.82
#4E1B7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E1B7D
11.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1B7D#FFFFFF#000000##FFFFFF
##4E1B7D1.0011.821.7811.82
#FFFFFF11.821.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003780
Deuteranopia (green-blind)
#00377B
Tritanopia (blue-blind)
#44344B
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #4e1b7d;
/* rgb */ color: rgb(78, 27, 125);
/* oklch */ color: oklch(35.8% 0.154 302.8);
Tailwind
colors: {
  custom: {
    50: '#855da3',
    500: '#4e1b7d',
    950: '#000000',
  },
}
SCSS
$custom: #4e1b7d;
$custom-light: #855da3;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1b7d",
  "rgb": {
    "r": 78,
    "g": 27,
    "b": 125
  },
  "hsl": {
    "h": 271.224,
    "s": 64.474,
    "l": 29.804
  },
  "oklch": {
    "l": 0.35788,
    "c": 0.15439,
    "h": 302.8
  },
  "luminance": 0.03884
}

Semantic roles & 50–950 ramp

primary
#4E1B7D
secondary
#78B143
accent
#E74090
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4E1B7D

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

Preview Lab → · Contrast checker → · Palette generator →

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