#4E1B6E#4E1B6E

#4E1B6E is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.5% C 0.138 H 308.9°. Best body text is #FFFFFF at 12.31:1 contrast (WCAG AA passes).

Color values

HEX#4E1B6E
RGBrgb(78, 27, 110)
HSLhsl(277, 61%, 27%)
HSVhsv(277, 75%, 43%)
CMYKcmyk(29.1%, 75.5%, 0%, 56.9%)
CIE-LABlab(22.05, 38.85, -37.91)
CIE-LCHlch(22.05, 54.28, 315.70°)
OKLaboklab(34.53% 0.0868 -0.1074)
OKLCHoklch(34.53% 0.138 308.9)
XYZxyz(6.3477, 3.5295, 15.0957)
Luminance0.0353 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1B6E #3B6E1B
analogous
#241B6E #4E1B6E #6E1B65
triadic
#4E1B6E #6E4E1B #1B6E4E
tetradic
#4E1B6E #6E241B #3B6E1B #1B656E
square
#4E1B6E #6E241B #3B6E1B #1B656E
split-complementary
#4E1B6E #656E1B #1B6E24
monochromatic
#110619 #2B0F3D #4E1B6E #71279F #9336CE

Accessibility & contrast

On white

12.31
#4E1B6E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E1B6E
12.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1B6E#FFFFFF#000000##FFFFFF
##4E1B6E1.0012.311.7112.31
#FFFFFF12.311.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003370
Deuteranopia (green-blind)
#06356C
Tritanopia (blue-blind)
#492E43
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4e1b6e;
/* rgb */ color: rgb(78, 27, 110);
/* oklch */ color: oklch(34.5% 0.138 308.9);
Tailwind
colors: {
  custom: {
    50: '#835d98',
    500: '#4e1b6e',
    950: '#000000',
  },
}
SCSS
$custom: #4e1b6e;
$custom-light: #835d98;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1b6e",
  "rgb": {
    "r": 78,
    "g": 27,
    "b": 110
  },
  "hsl": {
    "h": 276.867,
    "s": 60.584,
    "l": 26.863
  },
  "oklch": {
    "l": 0.34529,
    "c": 0.1381,
    "h": 308.9
  },
  "luminance": 0.03529
}

Semantic roles & 50–950 ramp

primary
#4E1B6E
secondary
#67A342
accent
#E44482
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4E1B6E

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

Preview Lab → · Contrast checker → · Palette generator →

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