#4E1B6D#4E1B6D

#4E1B6D is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.4% C 0.137 H 309.4°. Best body text is #FFFFFF at 12.34:1 contrast (WCAG AA passes).

Color values

HEX#4E1B6D
RGBrgb(78, 27, 109)
HSLhsl(277, 60%, 27%)
HSVhsv(277, 75%, 43%)
CMYKcmyk(28.4%, 75.2%, 0%, 57.3%)
CIE-LABlab(21.97, 38.61, -37.39)
CIE-LCHlch(21.97, 53.74, 315.92°)
OKLaboklab(34.45% 0.0869 -0.1059)
OKLCHoklch(34.45% 0.137 309.4)
XYZxyz(6.2936, 3.5078, 14.8106)
Luminance0.0351 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1B6D #3A6D1B
analogous
#251B6D #4E1B6D #6D1B63
triadic
#4E1B6D #6D4E1B #1B6D4E
tetradic
#4E1B6D #6D251B #3A6D1B #1B636D
square
#4E1B6D #6D251B #3A6D1B #1B636D
split-complementary
#4E1B6D #636D1B #1B6D25
monochromatic
#120619 #2B0F3C #4E1B6D #71279E #9435CD

Accessibility & contrast

On white

12.34
#4E1B6D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E1B6D
12.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1B6D#FFFFFF#000000##FFFFFF
##4E1B6D1.0012.341.7012.34
#FFFFFF12.341.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00336F
Deuteranopia (green-blind)
#08356B
Tritanopia (blue-blind)
#492E42
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4e1b6d;
/* rgb */ color: rgb(78, 27, 109);
/* oklch */ color: oklch(34.4% 0.137 309.4);
Tailwind
colors: {
  custom: {
    50: '#835c97',
    500: '#4e1b6d',
    950: '#000000',
  },
}
SCSS
$custom: #4e1b6d;
$custom-light: #835c97;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1b6d",
  "rgb": {
    "r": 78,
    "g": 27,
    "b": 109
  },
  "hsl": {
    "h": 277.317,
    "s": 60.294,
    "l": 26.667
  },
  "oklch": {
    "l": 0.34449,
    "c": 0.13702,
    "h": 309.4
  },
  "luminance": 0.03508
}

Semantic roles & 50–950 ramp

primary
#4E1B6D
secondary
#66A242
accent
#E34481
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #4E1B6D

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

Preview Lab → · Contrast checker → · Palette generator →

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