#4E2874#4E2874

#4E2874 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 36.8% C 0.126 H 303.8°. Best body text is #FFFFFF at 11.17:1 contrast (WCAG AA passes).

Color values

HEX#4E2874
RGBrgb(78, 40, 116)
HSLhsl(270, 49%, 31%)
HSVhsv(270, 66%, 45%)
CMYKcmyk(32.8%, 65.5%, 0%, 54.5%)
CIE-LABlab(24.95, 33.61, -37.09)
CIE-LCHlch(24.95, 50.05, 312.18°)
OKLaboklab(36.75% 0.0704 -0.1051)
OKLCHoklch(36.75% 0.126 303.8)
XYZxyz(7.0524, 4.3983, 16.9970)
Luminance0.0440 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2874 #4E7428
analogous
#282874 #4E2874 #742874
triadic
#4E2874 #744E28 #28744E
tetradic
#4E2874 #742828 #4E7428 #287474
square
#4E2874 #742828 #4E7428 #287474
split-complementary
#4E2874 #747428 #287428
monochromatic
#110919 #2F1846 #4E2874 #6D38A2 #8B53C4

Accessibility & contrast

On white

11.17
#4E2874 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E2874
11.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2874#FFFFFF#000000##FFFFFF
##4E28741.0011.171.8811.17
#FFFFFF11.171.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A76
Deuteranopia (green-blind)
#133B72
Tritanopia (blue-blind)
#47384A
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #4e2874;
/* rgb */ color: rgb(78, 40, 116);
/* oklch */ color: oklch(36.8% 0.126 303.8);
Tailwind
colors: {
  custom: {
    50: '#83649c',
    500: '#4e2874',
    950: '#000000',
  },
}
SCSS
$custom: #4e2874;
$custom-light: #83649c;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2874",
  "rgb": {
    "r": 78,
    "g": 40,
    "b": 116
  },
  "hsl": {
    "h": 270,
    "s": 48.718,
    "l": 30.588
  },
  "oklch": {
    "l": 0.3675,
    "c": 0.12648,
    "h": 303.8
  },
  "luminance": 0.04398
}

Semantic roles & 50–950 ramp

primary
#4E2874
secondary
#7CA652
accent
#D85094
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B050E
muted
#7C7A7E

Preview Lab

Preview with #4E2874

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

Preview Lab → · Contrast checker → · Palette generator →

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