#4E2872#4E2872

#4E2872 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 36.6% C 0.124 H 304.6°. Best body text is #FFFFFF at 11.23:1 contrast (WCAG AA passes).

Color values

HEX#4E2872
RGBrgb(78, 40, 114)
HSLhsl(271, 48%, 30%)
HSVhsv(271, 65%, 45%)
CMYKcmyk(31.6%, 64.9%, 0%, 55.3%)
CIE-LABlab(24.80, 33.08, -36.04)
CIE-LCHlch(24.80, 48.92, 312.55°)
OKLaboklab(36.6% 0.0705 -0.102)
OKLCHoklch(36.6% 0.124 304.6)
XYZxyz(6.9373, 4.3522, 16.3909)
Luminance0.0435 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2872 #4C7228
analogous
#292872 #4E2872 #722871
triadic
#4E2872 #724E28 #28724E
tetradic
#4E2872 #722928 #4C7228 #287172
square
#4E2872 #722928 #4C7228 #287172
split-complementary
#4E2872 #717228 #287229
monochromatic
#100817 #2F1845 #4E2872 #6D389F #8C52C2

Accessibility & contrast

On white

11.23
#4E2872 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#4E2872 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2872
11.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2872#FFFFFF#000000##FFFFFF
##4E28721.0011.231.8711.23
#FFFFFF11.231.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A74
Deuteranopia (green-blind)
#163B70
Tritanopia (blue-blind)
#483749
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #4e2872;
/* rgb */ color: rgb(78, 40, 114);
/* oklch */ color: oklch(36.6% 0.124 304.6);
Tailwind
colors: {
  custom: {
    50: '#83649b',
    500: '#4e2872',
    950: '#000000',
  },
}
SCSS
$custom: #4e2872;
$custom-light: #83649b;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2872",
  "rgb": {
    "r": 78,
    "g": 40,
    "b": 114
  },
  "hsl": {
    "h": 270.811,
    "s": 48.052,
    "l": 30.196
  },
  "oklch": {
    "l": 0.366,
    "c": 0.12399,
    "h": 304.6
  },
  "luminance": 0.04352
}

Semantic roles & 50–950 ramp

primary
#4E2872
secondary
#7AA452
accent
#D85092
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B050E
muted
#7C7A7E

Preview Lab

Preview with #4E2872

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

Preview Lab → · Contrast checker → · Palette generator →

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