#4E1974#4E1974

#4E1974 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.8% C 0.147 H 306.6°. Best body text is #FFFFFF at 12.24:1 contrast (WCAG AA passes).

Color values

HEX#4E1974
RGBrgb(78, 25, 116)
HSLhsl(275, 65%, 28%)
HSVhsv(275, 78%, 45%)
CMYKcmyk(32.8%, 78.4%, 0%, 54.5%)
CIE-LABlab(22.22, 41.21, -41.51)
CIE-LCHlch(22.22, 58.49, 314.80°)
OKLaboklab(34.8% 0.0877 -0.118)
OKLCHoklch(34.8% 0.147 306.6)
XYZxyz(6.6412, 3.5760, 16.8600)
Luminance0.0358 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1974 #3F7419
analogous
#201974 #4E1974 #74196C
triadic
#4E1974 #744E19 #19744E
tetradic
#4E1974 #742019 #3F7419 #196C74
square
#4E1974 #742019 #3F7419 #196C74
split-complementary
#4E1974 #6C7419 #197420
monochromatic
#110519 #2C0E42 #4E1974 #7024A6 #9134D3

Accessibility & contrast

On white

12.24
#4E1974 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E1974
12.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1974#FFFFFF#000000##FFFFFF
##4E19741.0012.241.7212.24
#FFFFFF12.241.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003377
Deuteranopia (green-blind)
#003572
Tritanopia (blue-blind)
#472F45
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4e1974;
/* rgb */ color: rgb(78, 25, 116);
/* oklch */ color: oklch(34.8% 0.147 306.6);
Tailwind
colors: {
  custom: {
    50: '#845c9d',
    500: '#4e1974',
    950: '#000000',
  },
}
SCSS
$custom: #4e1974;
$custom-light: #845c9d;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1974",
  "rgb": {
    "r": 78,
    "g": 25,
    "b": 116
  },
  "hsl": {
    "h": 274.945,
    "s": 64.539,
    "l": 27.647
  },
  "oklch": {
    "l": 0.34799,
    "c": 0.14701,
    "h": 306.6
  },
  "luminance": 0.03576
}

Semantic roles & 50–950 ramp

primary
#4E1974
secondary
#6CA940
accent
#E84086
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4E1974

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

Preview Lab → · Contrast checker → · Palette generator →

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