#4E1B77#4E1B77

#4E1B77 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.3% C 0.148 H 305.1°. Best body text is #FFFFFF at 12.02:1 contrast (WCAG AA passes).

Color values

HEX#4E1B77
RGBrgb(78, 27, 119)
HSLhsl(273, 63%, 29%)
HSVhsv(273, 77%, 47%)
CMYKcmyk(34.5%, 77.3%, 0%, 53.3%)
CIE-LABlab(22.78, 41.06, -42.52)
CIE-LCHlch(22.78, 59.11, 314.00°)
OKLaboklab(35.27% 0.085 -0.121)
OKLCHoklch(35.27% 0.148 305.1)
XYZxyz(6.8628, 3.7355, 17.8087)
Luminance0.0374 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1B77 #44771B
analogous
#201B77 #4E1B77 #771B72
triadic
#4E1B77 #774E1B #1B774E
tetradic
#4E1B77 #77201B #44771B #1B7277
square
#4E1B77 #77201B #44771B #1B7277
split-complementary
#4E1B77 #72771B #1B7720
monochromatic
#100619 #2D1045 #4E1B77 #6F26A9 #8E3AD2

Accessibility & contrast

On white

12.02
#4E1B77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#4E1B77 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1B77
12.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1B77#FFFFFF#000000##FFFFFF
##4E1B771.0012.021.7512.02
#FFFFFF12.021.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357A
Deuteranopia (green-blind)
#003675
Tritanopia (blue-blind)
#463248
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #4e1b77;
/* rgb */ color: rgb(78, 27, 119);
/* oklch */ color: oklch(35.3% 0.148 305.1);
Tailwind
colors: {
  custom: {
    50: '#845d9f',
    500: '#4e1b77',
    950: '#000000',
  },
}
SCSS
$custom: #4e1b77;
$custom-light: #845d9f;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1b77",
  "rgb": {
    "r": 78,
    "g": 27,
    "b": 119
  },
  "hsl": {
    "h": 273.261,
    "s": 63.014,
    "l": 28.627
  },
  "oklch": {
    "l": 0.35272,
    "c": 0.14787,
    "h": 305.1
  },
  "luminance": 0.03735
}

Semantic roles & 50–950 ramp

primary
#4E1B77
secondary
#71AB42
accent
#E6428B
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4E1B77

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

Preview Lab → · Contrast checker → · Palette generator →

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