#4E2A9E#4E2A9E

#4E2A9E is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.5% C 0.175 H 290.6°. Best body text is #FFFFFF at 9.77:1 contrast (WCAG AA passes).

Color values

HEX#4E2A9E
RGBrgb(78, 42, 158)
HSLhsl(259, 58%, 39%)
HSVhsv(259, 73%, 62%)
CMYKcmyk(50.6%, 73.4%, 0%, 38%)
CIE-LABlab(28.76, 44.22, -57.06)
CIE-LCHlch(28.76, 72.19, 307.77°)
OKLaboklab(40.55% 0.0616 -0.1638)
OKLCHoklch(40.55% 0.175 290.6)
XYZxyz(10.1396, 5.7438, 32.9155)
Luminance0.0574 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2A9E #7A9E2A
analogous
#2A409E #4E2A9E #882A9E
triadic
#4E2A9E #9E4E2A #2A9E4E
tetradic
#4E2A9E #9E2A40 #7A9E2A #2A9E88
square
#4E2A9E #9E2A40 #7A9E2A #2A9E88
split-complementary
#4E2A9E #9E882A #409E2A
monochromatic
#1E103D #361D6E #4E2A9E #673ACB #8D6BD8

Accessibility & contrast

On white

9.77
#4E2A9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#4E2A9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2A9E
9.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2A9E#FFFFFF#000000##FFFFFF
##4E2A9E1.009.772.159.77
#FFFFFF9.771.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A1
Deuteranopia (green-blind)
#00419C
Tritanopia (blue-blind)
#334961
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4e2a9e;
/* rgb */ color: rgb(78, 42, 158);
/* oklch */ color: oklch(40.5% 0.175 290.6);
Tailwind
colors: {
  custom: {
    50: '#8867bc',
    500: '#4e2a9e',
    950: '#000000',
  },
}
SCSS
$custom: #4e2a9e;
$custom-light: #8867bc;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2a9e",
  "rgb": {
    "r": 78,
    "g": 42,
    "b": 158
  },
  "hsl": {
    "h": 258.621,
    "s": 58,
    "l": 39.216
  },
  "oklch": {
    "l": 0.40546,
    "c": 0.17501,
    "h": 290.6
  },
  "luminance": 0.05744
}

Semantic roles & 50–950 ramp

primary
#4E2A9E
secondary
#A3BE66
accent
#E147B1
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4E2A9E

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

Preview Lab → · Contrast checker → · Palette generator →

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