#4E1B73#4E1B73

#4E1B73 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.9% C 0.144 H 306.7°. Best body text is #FFFFFF at 12.15:1 contrast (WCAG AA passes).

Color values

HEX#4E1B73
RGBrgb(78, 27, 115)
HSLhsl(275, 62%, 28%)
HSVhsv(275, 77%, 45%)
CMYKcmyk(32.2%, 76.5%, 0%, 54.9%)
CIE-LABlab(22.45, 40.07, -40.49)
CIE-LCHlch(22.45, 56.97, 314.70°)
OKLaboklab(34.94% 0.0859 -0.115)
OKLCHoklch(34.94% 0.144 306.7)
XYZxyz(6.6277, 3.6414, 16.5700)
Luminance0.0364 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1B73 #40731B
analogous
#221B73 #4E1B73 #731B6C
triadic
#4E1B73 #734E1B #1B734E
tetradic
#4E1B73 #73221B #40731B #1B6C73
square
#4E1B73 #73221B #40731B #1B6C73
split-complementary
#4E1B73 #6C731B #1B7322
monochromatic
#110619 #2C0F41 #4E1B73 #7027A5 #9038D0

Accessibility & contrast

On white

12.15
#4E1B73 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#4E1B73 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1B73
12.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1B73#FFFFFF#000000##FFFFFF
##4E1B731.0012.151.7312.15
#FFFFFF12.151.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003476
Deuteranopia (green-blind)
#003671
Tritanopia (blue-blind)
#483045
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #4e1b73;
/* rgb */ color: rgb(78, 27, 115);
/* oklch */ color: oklch(34.9% 0.144 306.7);
Tailwind
colors: {
  custom: {
    50: '#845d9c',
    500: '#4e1b73',
    950: '#000000',
  },
}
SCSS
$custom: #4e1b73;
$custom-light: #845d9c;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1b73",
  "rgb": {
    "r": 78,
    "g": 27,
    "b": 115
  },
  "hsl": {
    "h": 274.773,
    "s": 61.972,
    "l": 27.843
  },
  "oklch": {
    "l": 0.34937,
    "c": 0.14353,
    "h": 306.7
  },
  "luminance": 0.03641
}

Semantic roles & 50–950 ramp

primary
#4E1B73
secondary
#6DA842
accent
#E54387
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4E1B73

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

Preview Lab → · Contrast checker → · Palette generator →

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