#4E1873#4E1873

#4E1873 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.6% C 0.147 H 307.2°. Best body text is #FFFFFF at 12.34:1 contrast (WCAG AA passes).

Color values

HEX#4E1873
RGBrgb(78, 24, 115)
HSLhsl(276, 65%, 27%)
HSVhsv(276, 79%, 45%)
CMYKcmyk(32.2%, 79.1%, 0%, 54.9%)
CIE-LABlab(21.98, 41.40, -41.24)
CIE-LCHlch(21.98, 58.44, 315.11°)
OKLaboklab(34.61% 0.0889 -0.1172)
OKLCHoklch(34.61% 0.147 307.2)
XYZxyz(6.5624, 3.5109, 16.5483)
Luminance0.0351 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E1873 #3D7318
analogous
#201873 #4E1873 #73186B
triadic
#4E1873 #734E18 #18734E
tetradic
#4E1873 #732018 #3D7318 #186B73
square
#4E1873 #732018 #3D7318 #186B73
split-complementary
#4E1873 #6B7318 #187320
monochromatic
#110519 #2C0D40 #4E1873 #7023A6 #9231D4

Accessibility & contrast

On white

12.34
#4E1873 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E1873
12.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E1873#FFFFFF#000000##FFFFFF
##4E18731.0012.341.7012.34
#FFFFFF12.341.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003376
Deuteranopia (green-blind)
#003571
Tritanopia (blue-blind)
#482E45
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4e1873;
/* rgb */ color: rgb(78, 24, 115);
/* oklch */ color: oklch(34.6% 0.147 307.2);
Tailwind
colors: {
  custom: {
    50: '#845b9c',
    500: '#4e1873',
    950: '#000000',
  },
}
SCSS
$custom: #4e1873;
$custom-light: #845b9c;
$custom-dark: #000000;
JSON
{
  "hex": "#4e1873",
  "rgb": {
    "r": 78,
    "g": 24,
    "b": 115
  },
  "hsl": {
    "h": 275.604,
    "s": 65.468,
    "l": 27.255
  },
  "oklch": {
    "l": 0.34608,
    "c": 0.14711,
    "h": 307.2
  },
  "luminance": 0.03511
}

Semantic roles & 50–950 ramp

primary
#4E1873
secondary
#6AA83F
accent
#E83F84
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4E1873

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

Preview Lab → · Contrast checker → · Palette generator →

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