#4E1B74#4E1B74

#4E1B74 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.0% C 0.145 H 306.3°. Best body text is #FFFFFF at 12.12:1 contrast (WCAG AA passes).

Color values

HEX#4E1B74
RGBrgb(78, 27, 116)
HSLhsl(274, 62%, 28%)
HSVhsv(274, 77%, 45%)
CMYKcmyk(32.8%, 76.7%, 0%, 54.5%)
CIE-LABlab(22.53, 40.32, -41.00)
CIE-LCHlch(22.53, 57.50, 314.52°)
OKLaboklab(35.02% 0.0857 -0.1165)
OKLCHoklch(35.02% 0.145 306.3)
XYZxyz(6.6855, 3.6646, 16.8747)
Luminance0.0367 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1B74 #41741B
analogous
#211B74 #4E1B74 #741B6D
triadic
#4E1B74 #744E1B #1B744E
tetradic
#4E1B74 #74211B #41741B #1B6D74
square
#4E1B74 #74211B #41741B #1B6D74
split-complementary
#4E1B74 #6D741B #1B7421
monochromatic
#110619 #2D0F42 #4E1B74 #6F27A6 #9039D1

Accessibility & contrast

On white

12.12
#4E1B74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E1B74
12.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1B74#FFFFFF#000000##FFFFFF
##4E1B741.0012.121.7312.12
#FFFFFF12.121.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003477
Deuteranopia (green-blind)
#003672
Tritanopia (blue-blind)
#473046
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #4e1b74;
/* rgb */ color: rgb(78, 27, 116);
/* oklch */ color: oklch(35.0% 0.145 306.3);
Tailwind
colors: {
  custom: {
    50: '#845d9d',
    500: '#4e1b74',
    950: '#000000',
  },
}
SCSS
$custom: #4e1b74;
$custom-light: #845d9d;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1b74",
  "rgb": {
    "r": 78,
    "g": 27,
    "b": 116
  },
  "hsl": {
    "h": 274.382,
    "s": 62.238,
    "l": 28.039
  },
  "oklch": {
    "l": 0.3502,
    "c": 0.14462,
    "h": 306.3
  },
  "luminance": 0.03665
}

Semantic roles & 50–950 ramp

primary
#4E1B74
secondary
#6EA942
accent
#E54288
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4E1B74

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

Preview Lab → · Contrast checker → · Palette generator →

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