#4E1B6B#4E1B6B

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

Color values

HEX#4E1B6B
RGBrgb(78, 27, 107)
HSLhsl(278, 60%, 26%)
HSVhsv(278, 75%, 42%)
CMYKcmyk(27.1%, 74.8%, 0%, 58%)
CIE-LABlab(21.82, 38.12, -36.34)
CIE-LCHlch(21.82, 52.67, 316.37°)
OKLaboklab(34.29% 0.0872 -0.1028)
OKLCHoklch(34.29% 0.135 310.3)
XYZxyz(6.1871, 3.4652, 14.2500)
Luminance0.0347 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1B6B #386B1B
analogous
#261B6B #4E1B6B #6B1B60
triadic
#4E1B6B #6B4E1B #1B6B4E
tetradic
#4E1B6B #6B261B #386B1B #1B606B
square
#4E1B6B #6B261B #386B1B #1B606B
split-complementary
#4E1B6B #606B1B #1B6B26
monochromatic
#120618 #2A0F3A #4E1B6B #72279C #9535CC

Accessibility & contrast

On white

12.40
#4E1B6B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#4E1B6B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1B6B
12.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1B6B#FFFFFF#000000##FFFFFF
##4E1B6B1.0012.401.6912.40
#FFFFFF12.401.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.401.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4e1b6b;
/* rgb */ color: rgb(78, 27, 107);
/* oklch */ color: oklch(34.3% 0.135 310.3);
Tailwind
colors: {
  custom: {
    50: '#835c96',
    500: '#4e1b6b',
    950: '#000000',
  },
}
SCSS
$custom: #4e1b6b;
$custom-light: #835c96;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1b6b",
  "rgb": {
    "r": 78,
    "g": 27,
    "b": 107
  },
  "hsl": {
    "h": 278.25,
    "s": 59.701,
    "l": 26.275
  },
  "oklch": {
    "l": 0.3429,
    "c": 0.13484,
    "h": 310.3
  },
  "luminance": 0.03465
}

Semantic roles & 50–950 ramp

primary
#4E1B6B
secondary
#64A042
accent
#E3457E
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #4E1B6B

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

Preview Lab → · Contrast checker → · Palette generator →

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