#4E1976#4E1976

#4E1976 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.0% C 0.149 H 305.8°. Best body text is #FFFFFF at 12.18:1 contrast (WCAG AA passes).

Color values

HEX#4E1976
RGBrgb(78, 25, 118)
HSLhsl(274, 65%, 28%)
HSVhsv(274, 79%, 46%)
CMYKcmyk(33.9%, 78.8%, 0%, 53.7%)
CIE-LABlab(22.38, 41.70, -42.52)
CIE-LCHlch(22.38, 59.55, 314.44°)
OKLaboklab(34.97% 0.0872 -0.121)
OKLCHoklch(34.97% 0.149 305.8)
XYZxyz(6.7588, 3.6230, 17.4793)
Luminance0.0362 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1976 #417619
analogous
#201976 #4E1976 #76196F
triadic
#4E1976 #764E19 #19764E
tetradic
#4E1976 #762019 #417619 #196F76
square
#4E1976 #762019 #417619 #196F76
split-complementary
#4E1976 #6F7619 #197620
monochromatic
#110519 #2D0E43 #4E1976 #6F24A8 #9035D4

Accessibility & contrast

On white

12.18
#4E1976 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#4E1976 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1976
12.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1976#FFFFFF#000000##FFFFFF
##4E19761.0012.181.7212.18
#FFFFFF12.181.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003479
Deuteranopia (green-blind)
#003674
Tritanopia (blue-blind)
#473047
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4e1976;
/* rgb */ color: rgb(78, 25, 118);
/* oklch */ color: oklch(35.0% 0.149 305.8);
Tailwind
colors: {
  custom: {
    50: '#845c9e',
    500: '#4e1976',
    950: '#000000',
  },
}
SCSS
$custom: #4e1976;
$custom-light: #845c9e;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1976",
  "rgb": {
    "r": 78,
    "g": 25,
    "b": 118
  },
  "hsl": {
    "h": 274.194,
    "s": 65.035,
    "l": 28.039
  },
  "oklch": {
    "l": 0.34968,
    "c": 0.14914,
    "h": 305.8
  },
  "luminance": 0.03623
}

Semantic roles & 50–950 ramp

primary
#4E1976
secondary
#6EAB40
accent
#E84088
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4E1976

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

Preview Lab → · Contrast checker → · Palette generator →

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