#4E1D7F#4E1D7F

#4E1D7F is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.2% C 0.154 H 301.8°. Best body text is #FFFFFF at 11.63:1 contrast (WCAG AA passes).

Color values

HEX#4E1D7F
RGBrgb(78, 29, 127)
HSLhsl(270, 63%, 31%)
HSVhsv(270, 77%, 50%)
CMYKcmyk(38.6%, 77.2%, 0%, 50.2%)
CIE-LABlab(23.77, 42.17, -45.98)
CIE-LCHlch(23.77, 62.40, 312.52°)
OKLaboklab(36.18% 0.0812 -0.1312)
OKLCHoklch(36.18% 0.154 301.8)
XYZxyz(7.4111, 4.0307, 20.4621)
Luminance0.0403 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1D7F #4E7F1D
analogous
#1D1D7F #4E1D7F #7F1D7F
triadic
#4E1D7F #7F4E1D #1D7F4E
tetradic
#4E1D7F #7F1D1D #4E7F1D #1D7F7F
square
#4E1D7F #7F1D1D #4E7F1D #1D7F7F
split-complementary
#4E1D7F #7F7F1D #1D7F1D
monochromatic
#11061B #2F124D #4E1D7F #6D28B1 #8B42D4

Accessibility & contrast

On white

11.63
#4E1D7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#4E1D7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1D7F
11.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1D7F#FFFFFF#000000##FFFFFF
##4E1D7F1.0011.631.8111.63
#FFFFFF11.631.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003882
Deuteranopia (green-blind)
#00387D
Tritanopia (blue-blind)
#43364D
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4e1d7f;
/* rgb */ color: rgb(78, 29, 127);
/* oklch */ color: oklch(36.2% 0.154 301.8);
Tailwind
colors: {
  custom: {
    50: '#855ea5',
    500: '#4e1d7f',
    950: '#000000',
  },
}
SCSS
$custom: #4e1d7f;
$custom-light: #855ea5;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1d7f",
  "rgb": {
    "r": 78,
    "g": 29,
    "b": 127
  },
  "hsl": {
    "h": 270,
    "s": 62.821,
    "l": 30.588
  },
  "oklch": {
    "l": 0.36184,
    "c": 0.15429,
    "h": 301.8
  },
  "luminance": 0.04031
}

Semantic roles & 50–950 ramp

primary
#4E1D7F
secondary
#7CB245
accent
#E64294
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4E1D7F

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

Preview Lab → · Contrast checker → · Palette generator →

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