#4E2A72#4E2A72

#4E2A72 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 36.9% C 0.121 H 304.1°. Best body text is #FFFFFF at 11.06:1 contrast (WCAG AA passes).

Color values

HEX#4E2A72
RGBrgb(78, 42, 114)
HSLhsl(270, 46%, 31%)
HSVhsv(270, 63%, 45%)
CMYKcmyk(31.6%, 63.2%, 0%, 55.3%)
CIE-LABlab(25.23, 31.93, -35.35)
CIE-LCHlch(25.23, 47.64, 312.08°)
OKLaboklab(36.91% 0.0678 -0.1)
OKLCHoklch(36.91% 0.121 304.1)
XYZxyz(7.0064, 4.4906, 16.4140)
Luminance0.0449 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2A72 #4E722A
analogous
#2A2A72 #4E2A72 #722A72
triadic
#4E2A72 #724E2A #2A724E
tetradic
#4E2A72 #722A2A #4E722A #2A7272
square
#4E2A72 #722A2A #4E722A #2A7272
split-complementary
#4E2A72 #72722A #2A722A
monochromatic
#110919 #2F1A45 #4E2A72 #6D3A9F #8B56C1

Accessibility & contrast

On white

11.06
#4E2A72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#4E2A72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2A72
11.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2A72#FFFFFF#000000##FFFFFF
##4E2A721.0011.061.9011.06
#FFFFFF11.061.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#053B74
Deuteranopia (green-blind)
#193C70
Tritanopia (blue-blind)
#473949
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #4e2a72;
/* rgb */ color: rgb(78, 42, 114);
/* oklch */ color: oklch(36.9% 0.121 304.1);
Tailwind
colors: {
  custom: {
    50: '#82659b',
    500: '#4e2a72',
    950: '#000000',
  },
}
SCSS
$custom: #4e2a72;
$custom-light: #82659b;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2a72",
  "rgb": {
    "r": 78,
    "g": 42,
    "b": 114
  },
  "hsl": {
    "h": 270,
    "s": 46.154,
    "l": 30.588
  },
  "oklch": {
    "l": 0.36911,
    "c": 0.12083,
    "h": 304.1
  },
  "luminance": 0.04491
}

Semantic roles & 50–950 ramp

primary
#4E2A72
secondary
#7CA454
accent
#D65294
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B060E
muted
#7C7A7E

Preview Lab

Preview with #4E2A72

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

Preview Lab → · Contrast checker → · Palette generator →

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