#4E1D6B#4E1D6B

#4E1D6B is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.5% C 0.132 H 310.0°. Best body text is #FFFFFF at 12.27:1 contrast (WCAG AA passes).

Color values

HEX#4E1D6B
RGBrgb(78, 29, 107)
HSLhsl(278, 57%, 27%)
HSVhsv(278, 73%, 42%)
CMYKcmyk(27.1%, 72.9%, 0%, 58%)
CIE-LABlab(22.16, 37.16, -35.79)
CIE-LCHlch(22.16, 51.59, 316.08°)
OKLaboklab(34.53% 0.0849 -0.1012)
OKLCHoklch(34.53% 0.132 310)
XYZxyz(6.2346, 3.5601, 14.2658)
Luminance0.0356 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1D6B #3A6B1D
analogous
#271D6B #4E1D6B #6B1D61
triadic
#4E1D6B #6B4E1D #1D6B4E
tetradic
#4E1D6B #6B271D #3A6B1D #1D616B
square
#4E1D6B #6B271D #3A6B1D #1D616B
split-complementary
#4E1D6B #616B1D #1D6B27
monochromatic
#120718 #2B103B #4E1D6B #712A9B #9439C9

Accessibility & contrast

On white

12.27
#4E1D6B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#4E1D6B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1D6B
12.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1D6B#FFFFFF#000000##FFFFFF
##4E1D6B1.0012.271.7112.27
#FFFFFF12.271.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00336D
Deuteranopia (green-blind)
#103669
Tritanopia (blue-blind)
#4A2E41
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4e1d6b;
/* rgb */ color: rgb(78, 29, 107);
/* oklch */ color: oklch(34.5% 0.132 310.0);
Tailwind
colors: {
  custom: {
    50: '#835d96',
    500: '#4e1d6b',
    950: '#000000',
  },
}
SCSS
$custom: #4e1d6b;
$custom-light: #835d96;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1d6b",
  "rgb": {
    "r": 78,
    "g": 29,
    "b": 107
  },
  "hsl": {
    "h": 277.692,
    "s": 57.353,
    "l": 26.667
  },
  "oklch": {
    "l": 0.34534,
    "c": 0.13212,
    "h": 310
  },
  "luminance": 0.0356
}

Semantic roles & 50–950 ramp

primary
#4E1D6B
secondary
#66A044
accent
#E14780
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #4E1D6B

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

Preview Lab → · Contrast checker → · Palette generator →

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