#4E2A9B#4E2A9B

#4E2A9B is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.3% C 0.171 H 291.3°. Best body text is #FFFFFF at 9.87:1 contrast (WCAG AA passes).

Color values

HEX#4E2A9B
RGBrgb(78, 42, 155)
HSLhsl(259, 57%, 39%)
HSVhsv(259, 73%, 61%)
CMYKcmyk(49.7%, 72.9%, 0%, 39.2%)
CIE-LABlab(28.49, 43.36, -55.67)
CIE-LCHlch(28.49, 70.57, 307.92°)
OKLaboklab(40.28% 0.0623 -0.1597)
OKLCHoklch(40.28% 0.171 291.3)
XYZxyz(9.8846, 5.6418, 31.5722)
Luminance0.0564 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2A9B #779B2A
analogous
#2A3E9B #4E2A9B #862A9B
triadic
#4E2A9B #9B4E2A #2A9B4E
tetradic
#4E2A9B #9B2A3E #779B2A #2A9B86
square
#4E2A9B #9B2A3E #779B2A #2A9B86
split-complementary
#4E2A9B #9B862A #3E9B2A
monochromatic
#1E103B #361D6B #4E2A9B #6739C9 #8C69D6

Accessibility & contrast

On white

9.87
#4E2A9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#4E2A9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2A9B
9.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2A9B#FFFFFF#000000##FFFFFF
##4E2A9B1.009.872.139.87
#FFFFFF9.871.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459E
Deuteranopia (green-blind)
#004199
Tritanopia (blue-blind)
#354860
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4e2a9b;
/* rgb */ color: rgb(78, 42, 155);
/* oklch */ color: oklch(40.3% 0.171 291.3);
Tailwind
colors: {
  custom: {
    50: '#8767b9',
    500: '#4e2a9b',
    950: '#000000',
  },
}
SCSS
$custom: #4e2a9b;
$custom-light: #8767b9;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2a9b",
  "rgb": {
    "r": 78,
    "g": 42,
    "b": 155
  },
  "hsl": {
    "h": 259.115,
    "s": 57.36,
    "l": 38.627
  },
  "oklch": {
    "l": 0.40275,
    "c": 0.17144,
    "h": 291.3
  },
  "luminance": 0.05642
}

Semantic roles & 50–950 ramp

primary
#4E2A9B
secondary
#A1BD64
accent
#E147B0
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4E2A9B

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

Preview Lab → · Contrast checker → · Palette generator →

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