#4E1772#4E1772

#4E1772 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.4% C 0.147 H 307.7°. Best body text is #FFFFFF at 12.43:1 contrast (WCAG AA passes).

Color values

HEX#4E1772
RGBrgb(78, 23, 114)
HSLhsl(276, 66%, 27%)
HSVhsv(276, 80%, 45%)
CMYKcmyk(31.6%, 79.8%, 0%, 55.3%)
CIE-LABlab(21.75, 41.58, -40.97)
CIE-LCHlch(21.75, 58.37, 315.42°)
OKLaboklab(34.42% 0.0901 -0.1164)
OKLCHoklch(34.42% 0.147 307.7)
XYZxyz(6.4849, 3.4475, 16.2401)
Luminance0.0345 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1772 #3B7217
analogous
#211772 #4E1772 #721769
triadic
#4E1772 #724E17 #17724E
tetradic
#4E1772 #722117 #3B7217 #176972
square
#4E1772 #722117 #3B7217 #176972
split-complementary
#4E1772 #697217 #177221
monochromatic
#110519 #2B0D3F #4E1772 #7121A5 #932ED5

Accessibility & contrast

On white

12.43
#4E1772 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#4E1772 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1772
12.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1772#FFFFFF#000000##FFFFFF
##4E17721.0012.431.6912.43
#FFFFFF12.431.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003275
Deuteranopia (green-blind)
#003570
Tritanopia (blue-blind)
#482E44
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #4e1772;
/* rgb */ color: rgb(78, 23, 114);
/* oklch */ color: oklch(34.4% 0.147 307.7);
Tailwind
colors: {
  custom: {
    50: '#845b9b',
    500: '#4e1772',
    950: '#000000',
  },
}
SCSS
$custom: #4e1772;
$custom-light: #845b9b;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1772",
  "rgb": {
    "r": 78,
    "g": 23,
    "b": 114
  },
  "hsl": {
    "h": 276.264,
    "s": 66.423,
    "l": 26.863
  },
  "oklch": {
    "l": 0.34421,
    "c": 0.1472,
    "h": 307.7
  },
  "luminance": 0.03447
}

Semantic roles & 50–950 ramp

primary
#4E1772
secondary
#67A83D
accent
#E93E82
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4E1772

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

Preview Lab → · Contrast checker → · Palette generator →

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