#4E1B7F#4E1B7F

#4E1B7F is a dark, vivid violet. Relative luminance 0.039; OKLCH L 36.0% C 0.157 H 302.1°. Best body text is #FFFFFF at 11.75:1 contrast (WCAG AA passes).

Color values

HEX#4E1B7F
RGBrgb(78, 27, 127)
HSLhsl(271, 65%, 30%)
HSVhsv(271, 79%, 50%)
CMYKcmyk(38.6%, 78.7%, 0%, 50.2%)
CIE-LABlab(23.46, 43.07, -46.50)
CIE-LCHlch(23.46, 63.38, 312.81°)
OKLaboklab(35.96% 0.0831 -0.1327)
OKLCHoklch(35.96% 0.157 302.1)
XYZxyz(7.3637, 3.9358, 20.4463)
Luminance0.0394 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1B7F #4C7F1B
analogous
#1C1B7F #4E1B7F #7F1B7E
triadic
#4E1B7F #7F4E1B #1B7F4E
tetradic
#4E1B7F #7F1C1B #4C7F1B #1B7E7F
square
#4E1B7F #7F1C1B #4C7F1B #1B7E7F
split-complementary
#4E1B7F #7E7F1B #1B7F1C
monochromatic
#10061A #2F104D #4E1B7F #6D26B1 #8C3ED6

Accessibility & contrast

On white

11.75
#4E1B7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E1B7F
11.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1B7F#FFFFFF#000000##FFFFFF
##4E1B7F1.0011.751.7911.75
#FFFFFF11.751.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003782
Deuteranopia (green-blind)
#00377D
Tritanopia (blue-blind)
#43354C
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4e1b7f;
/* rgb */ color: rgb(78, 27, 127);
/* oklch */ color: oklch(36.0% 0.157 302.1);
Tailwind
colors: {
  custom: {
    50: '#855da5',
    500: '#4e1b7f',
    950: '#000000',
  },
}
SCSS
$custom: #4e1b7f;
$custom-light: #855da5;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1b7f",
  "rgb": {
    "r": 78,
    "g": 27,
    "b": 127
  },
  "hsl": {
    "h": 270.6,
    "s": 64.935,
    "l": 30.196
  },
  "oklch": {
    "l": 0.35963,
    "c": 0.15656,
    "h": 302.1
  },
  "luminance": 0.03936
}

Semantic roles & 50–950 ramp

primary
#4E1B7F
secondary
#7AB343
accent
#E84092
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4E1B7F

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

Preview Lab → · Contrast checker → · Palette generator →

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