#4E1B6A#4E1B6A

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

Color values

HEX#4E1B6A
RGBrgb(78, 27, 106)
HSLhsl(279, 59%, 26%)
HSVhsv(279, 75%, 42%)
CMYKcmyk(26.4%, 74.5%, 0%, 58.4%)
CIE-LABlab(21.74, 37.88, -35.81)
CIE-LCHlch(21.74, 52.13, 316.61°)
OKLaboklab(34.21% 0.0874 -0.1013)
OKLCHoklch(34.21% 0.134 310.8)
XYZxyz(6.1348, 3.4443, 13.9745)
Luminance0.0344 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1B6A #376A1B
analogous
#261B6A #4E1B6A #6A1B5E
triadic
#4E1B6A #6A4E1B #1B6A4E
tetradic
#4E1B6A #6A261B #376A1B #1B5E6A
square
#4E1B6A #6A261B #376A1B #1B5E6A
split-complementary
#4E1B6A #5E6A1B #1B6A26
monochromatic
#120618 #2A0F39 #4E1B6A #72279B #9634CB

Accessibility & contrast

On white

12.43
#4E1B6A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E1B6A
12.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1B6A#FFFFFF#000000##FFFFFF
##4E1B6A1.0012.431.6912.43
#FFFFFF12.431.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00326C
Deuteranopia (green-blind)
#0E3568
Tritanopia (blue-blind)
#4A2C40
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #4e1b6a;
/* rgb */ color: rgb(78, 27, 106);
/* oklch */ color: oklch(34.2% 0.134 310.8);
Tailwind
colors: {
  custom: {
    50: '#835c95',
    500: '#4e1b6a',
    950: '#000000',
  },
}
SCSS
$custom: #4e1b6a;
$custom-light: #835c95;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1b6a",
  "rgb": {
    "r": 78,
    "g": 27,
    "b": 106
  },
  "hsl": {
    "h": 278.734,
    "s": 59.398,
    "l": 26.078
  },
  "oklch": {
    "l": 0.34212,
    "c": 0.13376,
    "h": 310.8
  },
  "luminance": 0.03444
}

Semantic roles & 50–950 ramp

primary
#4E1B6A
secondary
#639F42
accent
#E3457D
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #4E1B6A

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

Preview Lab → · Contrast checker → · Palette generator →

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