#4E1A6B#4E1A6B

#4E1A6B is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.2% C 0.136 H 310.5°. Best body text is #FFFFFF at 12.47:1 contrast (WCAG AA passes).

Color values

HEX#4E1A6B
RGBrgb(78, 26, 107)
HSLhsl(279, 61%, 26%)
HSVhsv(279, 76%, 42%)
CMYKcmyk(27.1%, 75.7%, 0%, 58%)
CIE-LABlab(21.65, 38.59, -36.60)
CIE-LCHlch(21.65, 53.19, 316.51°)
OKLaboklab(34.17% 0.0884 -0.1036)
OKLCHoklch(34.17% 0.136 310.5)
XYZxyz(6.1646, 3.4202, 14.2425)
Luminance0.0342 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1A6B #376B1A
analogous
#261A6B #4E1A6B #6B1A5F
triadic
#4E1A6B #6B4E1A #1A6B4E
tetradic
#4E1A6B #6B261A #376B1A #1A5F6B
square
#4E1A6B #6B261A #376B1A #1A5F6B
split-complementary
#4E1A6B #5F6B1A #1A6B26
monochromatic
#120619 #2A0E3A #4E1A6B #72269C #9632CD

Accessibility & contrast

On white

12.47
#4E1A6B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#4E1A6B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1A6B
12.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1A6B#FFFFFF#000000##FFFFFF
##4E1A6B1.0012.471.6812.47
#FFFFFF12.471.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00326D
Deuteranopia (green-blind)
#0B3569
Tritanopia (blue-blind)
#4A2C41
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #4e1a6b;
/* rgb */ color: rgb(78, 26, 107);
/* oklch */ color: oklch(34.2% 0.136 310.5);
Tailwind
colors: {
  custom: {
    50: '#835c96',
    500: '#4e1a6b',
    950: '#000000',
  },
}
SCSS
$custom: #4e1a6b;
$custom-light: #835c96;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1a6b",
  "rgb": {
    "r": 78,
    "g": 26,
    "b": 107
  },
  "hsl": {
    "h": 278.519,
    "s": 60.902,
    "l": 26.078
  },
  "oklch": {
    "l": 0.34173,
    "c": 0.13616,
    "h": 310.5
  },
  "luminance": 0.0342
}

Semantic roles & 50–950 ramp

primary
#4E1A6B
secondary
#63A040
accent
#E4447D
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #4E1A6B

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

Preview Lab → · Contrast checker → · Palette generator →

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