#4E1D68#4E1D68

#4E1D68 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.3% C 0.129 H 311.4°. Best body text is #FFFFFF at 12.36:1 contrast (WCAG AA passes).

Color values

HEX#4E1D68
RGBrgb(78, 29, 104)
HSLhsl(279, 56%, 26%)
HSVhsv(279, 72%, 41%)
CMYKcmyk(25%, 72.1%, 0%, 59.2%)
CIE-LABlab(21.94, 36.44, -34.19)
CIE-LCHlch(21.94, 49.97, 316.82°)
OKLaboklab(34.3% 0.0853 -0.0965)
OKLCHoklch(34.3% 0.129 311.4)
XYZxyz(6.0795, 3.4981, 13.4490)
Luminance0.0350 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1D68 #37681D
analogous
#281D68 #4E1D68 #681D5C
triadic
#4E1D68 #684E1D #1D684E
tetradic
#4E1D68 #68281D #37681D #1D5C68
square
#4E1D68 #68281D #37681D #1D5C68
split-complementary
#4E1D68 #5C681D #1D6828
monochromatic
#120718 #2A1038 #4E1D68 #722A98 #9638C7

Accessibility & contrast

On white

12.36
#4E1D68 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#4E1D68 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1D68
12.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1D68#FFFFFF#000000##FFFFFF
##4E1D681.0012.361.7012.36
#FFFFFF12.361.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00326A
Deuteranopia (green-blind)
#143566
Tritanopia (blue-blind)
#4B2D40
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4e1d68;
/* rgb */ color: rgb(78, 29, 104);
/* oklch */ color: oklch(34.3% 0.129 311.4);
Tailwind
colors: {
  custom: {
    50: '#835d94',
    500: '#4e1d68',
    950: '#000000',
  },
}
SCSS
$custom: #4e1d68;
$custom-light: #835d94;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1d68",
  "rgb": {
    "r": 78,
    "g": 29,
    "b": 104
  },
  "hsl": {
    "h": 279.2,
    "s": 56.391,
    "l": 26.078
  },
  "oklch": {
    "l": 0.34304,
    "c": 0.12881,
    "h": 311.4
  },
  "luminance": 0.03498
}

Semantic roles & 50–950 ramp

primary
#4E1D68
secondary
#639D44
accent
#E0487D
background
#F8F5F9
surface
#EFE9F1
border
#CAC5CB
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #4E1D68

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

Preview Lab → · Contrast checker → · Palette generator →

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