#4E2B9E#4E2B9E

#4E2B9E is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.7% C 0.174 H 290.4°. Best body text is #FFFFFF at 9.71:1 contrast (WCAG AA passes).

Color values

HEX#4E2B9E
RGBrgb(78, 43, 158)
HSLhsl(258, 57%, 39%)
HSVhsv(258, 73%, 62%)
CMYKcmyk(50.6%, 72.8%, 0%, 38%)
CIE-LABlab(28.94, 43.70, -56.76)
CIE-LCHlch(28.94, 71.63, 307.59°)
OKLaboklab(40.68% 0.0607 -0.1629)
OKLCHoklch(40.68% 0.174 290.4)
XYZxyz(10.1756, 5.8157, 32.9275)
Luminance0.0582 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2B9E #7B9E2B
analogous
#2B429E #4E2B9E #882B9E
triadic
#4E2B9E #9E4E2B #2B9E4E
tetradic
#4E2B9E #9E2B42 #7B9E2B #2B9E88
square
#4E2B9E #9E2B42 #7B9E2B #2B9E88
split-complementary
#4E2B9E #9E882B #429E2B
monochromatic
#1F113E #361E6E #4E2B9E #673CCA #8D6CD7

Accessibility & contrast

On white

9.71
#4E2B9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#4E2B9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2B9E
9.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2B9E#FFFFFF#000000##FFFFFF
##4E2B9E1.009.712.169.71
#FFFFFF9.711.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.711.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4e2b9e;
/* rgb */ color: rgb(78, 43, 158);
/* oklch */ color: oklch(40.7% 0.174 290.4);
Tailwind
colors: {
  custom: {
    50: '#8868bc',
    500: '#4e2b9e',
    950: '#000000',
  },
}
SCSS
$custom: #4e2b9e;
$custom-light: #8868bc;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2b9e",
  "rgb": {
    "r": 78,
    "g": 43,
    "b": 158
  },
  "hsl": {
    "h": 258.261,
    "s": 57.214,
    "l": 39.412
  },
  "oklch": {
    "l": 0.40678,
    "c": 0.17386,
    "h": 290.4
  },
  "luminance": 0.05816
}

Semantic roles & 50–950 ramp

primary
#4E2B9E
secondary
#A3BE67
accent
#E047B2
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4E2B9E

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

Preview Lab → · Contrast checker → · Palette generator →

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