#4E1872#4E1872

#4E1872 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.5% C 0.146 H 307.6°. Best body text is #FFFFFF at 12.37:1 contrast (WCAG AA passes).

Color values

HEX#4E1872
RGBrgb(78, 24, 114)
HSLhsl(276, 65%, 27%)
HSVhsv(276, 79%, 45%)
CMYKcmyk(31.6%, 78.9%, 0%, 55.3%)
CIE-LABlab(21.90, 41.16, -40.73)
CIE-LCHlch(21.90, 57.91, 315.30°)
OKLaboklab(34.52% 0.0891 -0.1157)
OKLCHoklch(34.52% 0.146 307.6)
XYZxyz(6.5051, 3.4880, 16.2469)
Luminance0.0349 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1872 #3C7218
analogous
#211872 #4E1872 #721869
triadic
#4E1872 #724E18 #18724E
tetradic
#4E1872 #722118 #3C7218 #186972
square
#4E1872 #722118 #3C7218 #186972
split-complementary
#4E1872 #697218 #187221
monochromatic
#110519 #2B0D3F #4E1872 #7123A5 #9231D4

Accessibility & contrast

On white

12.37
#4E1872 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#4E1872 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E1872
12.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1872#FFFFFF#000000##FFFFFF
##4E18721.0012.371.7012.37
#FFFFFF12.371.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.371.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4e1872;
/* rgb */ color: rgb(78, 24, 114);
/* oklch */ color: oklch(34.5% 0.146 307.6);
Tailwind
colors: {
  custom: {
    50: '#845b9b',
    500: '#4e1872',
    950: '#000000',
  },
}
SCSS
$custom: #4e1872;
$custom-light: #845b9b;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1872",
  "rgb": {
    "r": 78,
    "g": 24,
    "b": 114
  },
  "hsl": {
    "h": 276,
    "s": 65.217,
    "l": 27.059
  },
  "oklch": {
    "l": 0.34524,
    "c": 0.14606,
    "h": 307.6
  },
  "luminance": 0.03488
}

Semantic roles & 50–950 ramp

primary
#4E1872
secondary
#68A73E
accent
#E84083
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4E1872

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

Preview Lab → · Contrast checker → · Palette generator →

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