#4E2B9C#4E2B9C

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

Color values

HEX#4E2B9C
RGBrgb(78, 43, 156)
HSLhsl(259, 57%, 39%)
HSVhsv(259, 72%, 61%)
CMYKcmyk(50%, 72.4%, 0%, 38.8%)
CIE-LABlab(28.77, 43.12, -55.83)
CIE-LCHlch(28.77, 70.54, 307.68°)
OKLaboklab(40.5% 0.0612 -0.1602)
OKLCHoklch(40.5% 0.171 290.9)
XYZxyz(10.0048, 5.7474, 32.0282)
Luminance0.0575 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2B9C #799C2B
analogous
#2B419C #4E2B9C #872B9C
triadic
#4E2B9C #9C4E2B #2B9C4E
tetradic
#4E2B9C #9C2B41 #799C2B #2B9C87
square
#4E2B9C #9C2B41 #799C2B #2B9C87
split-complementary
#4E2B9C #9C872B #419C2B
monochromatic
#1E113C #361E6C #4E2B9C #673BC9 #8C6BD6

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4E2B9C#FFFFFF#000000##FFFFFF
##4E2B9C1.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)
#00469F
Deuteranopia (green-blind)
#00419A
Tritanopia (blue-blind)
#344860
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4e2b9c;
/* rgb */ color: rgb(78, 43, 156);
/* oklch */ color: oklch(40.5% 0.171 290.9);
Tailwind
colors: {
  custom: {
    50: '#8768ba',
    500: '#4e2b9c',
    950: '#000000',
  },
}
SCSS
$custom: #4e2b9c;
$custom-light: #8768ba;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2b9c",
  "rgb": {
    "r": 78,
    "g": 43,
    "b": 156
  },
  "hsl": {
    "h": 258.584,
    "s": 56.784,
    "l": 39.02
  },
  "oklch": {
    "l": 0.40498,
    "c": 0.17147,
    "h": 290.9
  },
  "luminance": 0.05748
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4E2B9C

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

Preview Lab → · Contrast checker → · Palette generator →

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