#4E2A71#4E2A71

#4E2A71 is a dark, moderate violet. Relative luminance 0.045; OKLCH L 36.8% C 0.120 H 304.6°. Best body text is #FFFFFF at 11.09:1 contrast (WCAG AA passes).

Color values

HEX#4E2A71
RGBrgb(78, 42, 113)
HSLhsl(270, 46%, 30%)
HSVhsv(270, 63%, 44%)
CMYKcmyk(31%, 62.8%, 0%, 55.7%)
CIE-LABlab(25.16, 31.66, -34.83)
CIE-LCHlch(25.16, 47.07, 312.27°)
OKLaboklab(36.84% 0.0678 -0.0985)
OKLCHoklch(36.84% 0.12 304.6)
XYZxyz(6.9498, 4.4679, 16.1158)
Luminance0.0447 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2A71 #4D712A
analogous
#2B2A71 #4E2A71 #712A70
triadic
#4E2A71 #714E2A #2A714E
tetradic
#4E2A71 #712B2A #4D712A #2A7071
square
#4E2A71 #712B2A #4D712A #2A7071
split-complementary
#4E2A71 #70712A #2A712B
monochromatic
#100918 #2F1944 #4E2A71 #6D3B9E #8B55C0

Accessibility & contrast

On white

11.09
#4E2A71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#4E2A71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2A71
11.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2A71#FFFFFF#000000##FFFFFF
##4E2A711.0011.091.8911.09
#FFFFFF11.091.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#073B73
Deuteranopia (green-blind)
#1A3C6F
Tritanopia (blue-blind)
#483849
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #4e2a71;
/* rgb */ color: rgb(78, 42, 113);
/* oklch */ color: oklch(36.8% 0.120 304.6);
Tailwind
colors: {
  custom: {
    50: '#82659a',
    500: '#4e2a71',
    950: '#000000',
  },
}
SCSS
$custom: #4e2a71;
$custom-light: #82659a;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2a71",
  "rgb": {
    "r": 78,
    "g": 42,
    "b": 113
  },
  "hsl": {
    "h": 270.423,
    "s": 45.806,
    "l": 30.392
  },
  "oklch": {
    "l": 0.36839,
    "c": 0.11956,
    "h": 304.6
  },
  "luminance": 0.04468
}

Semantic roles & 50–950 ramp

primary
#4E2A71
secondary
#7BA354
accent
#D55293
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B060E
muted
#7C7A7E

Preview Lab

Preview with #4E2A71

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

Preview Lab → · Contrast checker → · Palette generator →

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