#4E2B9D#4E2B9D

#4E2B9D is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.6% C 0.173 H 290.7°. Best body text is #FFFFFF at 9.74:1 contrast (WCAG AA passes).

Color values

HEX#4E2B9D
RGBrgb(78, 43, 157)
HSLhsl(258, 57%, 39%)
HSVhsv(258, 73%, 62%)
CMYKcmyk(50.3%, 72.6%, 0%, 38.4%)
CIE-LABlab(28.85, 43.41, -56.29)
CIE-LCHlch(28.85, 71.09, 307.64°)
OKLaboklab(40.59% 0.061 -0.1615)
OKLCHoklch(40.59% 0.173 290.7)
XYZxyz(10.0898, 5.7814, 32.4760)
Luminance0.0578 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2B9D #7A9D2B
analogous
#2B419D #4E2B9D #872B9D
triadic
#4E2B9D #9D4E2B #2B9D4E
tetradic
#4E2B9D #9D2B41 #7A9D2B #2B9D87
square
#4E2B9D #9D2B41 #7A9D2B #2B9D87
split-complementary
#4E2B9D #9D872B #419D2B
monochromatic
#1E113D #361E6D #4E2B9D #673CCA #8D6CD7

Accessibility & contrast

On white

9.74
#4E2B9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E2B9D
9.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2B9D#FFFFFF#000000##FFFFFF
##4E2B9D1.009.742.169.74
#FFFFFF9.741.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.741.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4e2b9d;
/* rgb */ color: rgb(78, 43, 157);
/* oklch */ color: oklch(40.6% 0.173 290.7);
Tailwind
colors: {
  custom: {
    50: '#8768bb',
    500: '#4e2b9d',
    950: '#000000',
  },
}
SCSS
$custom: #4e2b9d;
$custom-light: #8768bb;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2b9d",
  "rgb": {
    "r": 78,
    "g": 43,
    "b": 157
  },
  "hsl": {
    "h": 258.421,
    "s": 57,
    "l": 39.216
  },
  "oklch": {
    "l": 0.40587,
    "c": 0.17267,
    "h": 290.7
  },
  "luminance": 0.05782
}

Semantic roles & 50–950 ramp

primary
#4E2B9D
secondary
#A3BD66
accent
#E048B1
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4E2B9D

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

Preview Lab → · Contrast checker → · Palette generator →

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