#4E1472#4E1472

#4E1472 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.1% C 0.150 H 308.1°. Best body text is #FFFFFF at 12.60:1 contrast (WCAG AA passes).

Color values

HEX#4E1472
RGBrgb(78, 20, 114)
HSLhsl(277, 70%, 26%)
HSVhsv(277, 82%, 45%)
CMYKcmyk(31.6%, 82.5%, 0%, 55.3%)
CIE-LABlab(21.34, 42.78, -41.65)
CIE-LCHlch(21.34, 59.70, 315.77°)
OKLaboklab(34.13% 0.0928 -0.1184)
OKLCHoklch(34.13% 0.15 308.1)
XYZxyz(6.4287, 3.3350, 16.2214)
Luminance0.0333 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1472 #387214
analogous
#1F1472 #4E1472 #721467
triadic
#4E1472 #724E14 #14724E
tetradic
#4E1472 #721F14 #387214 #146772
square
#4E1472 #721F14 #387214 #146772
split-complementary
#4E1472 #677214 #14721F
monochromatic
#12051A #2A0B3E #4E1472 #721DA6 #9527D9

Accessibility & contrast

On white

12.60
#4E1472 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#4E1472 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1472
12.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1472#FFFFFF#000000##FFFFFF
##4E14721.0012.601.6712.60
#FFFFFF12.601.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003175
Deuteranopia (green-blind)
#003470
Tritanopia (blue-blind)
#482C43
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #4e1472;
/* rgb */ color: rgb(78, 20, 114);
/* oklch */ color: oklch(34.1% 0.150 308.1);
Tailwind
colors: {
  custom: {
    50: '#84599b',
    500: '#4e1472',
    950: '#000000',
  },
}
SCSS
$custom: #4e1472;
$custom-light: #84599b;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1472",
  "rgb": {
    "r": 78,
    "g": 20,
    "b": 114
  },
  "hsl": {
    "h": 277.021,
    "s": 70.149,
    "l": 26.275
  },
  "oklch": {
    "l": 0.34129,
    "c": 0.15043,
    "h": 308.1
  },
  "luminance": 0.03335
}

Semantic roles & 50–950 ramp

primary
#4E1472
secondary
#64A839
accent
#ED3B7F
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4E1472

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

Preview Lab → · Contrast checker → · Palette generator →

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