#4E2873#4E2873

#4E2873 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 36.7% C 0.125 H 304.2°. Best body text is #FFFFFF at 11.20:1 contrast (WCAG AA passes).

Color values

HEX#4E2873
RGBrgb(78, 40, 115)
HSLhsl(270, 48%, 30%)
HSVhsv(270, 65%, 45%)
CMYKcmyk(32.2%, 65.2%, 0%, 54.9%)
CIE-LABlab(24.87, 33.34, -36.57)
CIE-LCHlch(24.87, 49.49, 312.36°)
OKLaboklab(36.68% 0.0704 -0.1036)
OKLCHoklch(36.68% 0.125 304.2)
XYZxyz(6.9945, 4.3751, 16.6923)
Luminance0.0437 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2873 #4D7328
analogous
#282873 #4E2873 #732872
triadic
#4E2873 #734E28 #28734E
tetradic
#4E2873 #732828 #4D7328 #287273
square
#4E2873 #732828 #4D7328 #287273
split-complementary
#4E2873 #727328 #287328
monochromatic
#100818 #2F1846 #4E2873 #6D38A0 #8B52C3

Accessibility & contrast

On white

11.20
#4E2873 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#4E2873 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2873
11.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2873#FFFFFF#000000##FFFFFF
##4E28731.0011.201.8811.20
#FFFFFF11.201.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A75
Deuteranopia (green-blind)
#143B71
Tritanopia (blue-blind)
#473849
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #4e2873;
/* rgb */ color: rgb(78, 40, 115);
/* oklch */ color: oklch(36.7% 0.125 304.2);
Tailwind
colors: {
  custom: {
    50: '#83649c',
    500: '#4e2873',
    950: '#000000',
  },
}
SCSS
$custom: #4e2873;
$custom-light: #83649c;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2873",
  "rgb": {
    "r": 78,
    "g": 40,
    "b": 115
  },
  "hsl": {
    "h": 270.4,
    "s": 48.387,
    "l": 30.392
  },
  "oklch": {
    "l": 0.36675,
    "c": 0.12524,
    "h": 304.2
  },
  "luminance": 0.04375
}

Semantic roles & 50–950 ramp

primary
#4E2873
secondary
#7BA552
accent
#D85093
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B050E
muted
#7C7A7E

Preview Lab

Preview with #4E2873

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

Preview Lab → · Contrast checker → · Palette generator →

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