#4E2B9B#4E2B9B

#4E2B9B is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.4% C 0.170 H 291.1°. Best body text is #FFFFFF at 9.80:1 contrast (WCAG AA passes).

Color values

HEX#4E2B9B
RGBrgb(78, 43, 155)
HSLhsl(259, 57%, 39%)
HSVhsv(259, 72%, 61%)
CMYKcmyk(49.7%, 72.3%, 0%, 39.2%)
CIE-LABlab(28.68, 42.84, -55.36)
CIE-LCHlch(28.68, 70.00, 307.73°)
OKLaboklab(40.41% 0.0614 -0.1588)
OKLCHoklch(40.41% 0.17 291.1)
XYZxyz(9.9205, 5.7136, 31.5841)
Luminance0.0571 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2B9B #789B2B
analogous
#2B409B #4E2B9B #862B9B
triadic
#4E2B9B #9B4E2B #2B9B4E
tetradic
#4E2B9B #9B2B40 #789B2B #2B9B86
square
#4E2B9B #9B2B40 #789B2B #2B9B86
split-complementary
#4E2B9B #9B862B #409B2B
monochromatic
#1E103B #361E6B #4E2B9B #673BC9 #8C6BD6

Accessibility & contrast

On white

9.80
#4E2B9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#4E2B9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2B9B
9.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2B9B#FFFFFF#000000##FFFFFF
##4E2B9B1.009.802.149.80
#FFFFFF9.801.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.801.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4e2b9b;
/* rgb */ color: rgb(78, 43, 155);
/* oklch */ color: oklch(40.4% 0.170 291.1);
Tailwind
colors: {
  custom: {
    50: '#8767b9',
    500: '#4e2b9b',
    950: '#000000',
  },
}
SCSS
$custom: #4e2b9b;
$custom-light: #8767b9;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2b9b",
  "rgb": {
    "r": 78,
    "g": 43,
    "b": 155
  },
  "hsl": {
    "h": 258.75,
    "s": 56.566,
    "l": 38.824
  },
  "oklch": {
    "l": 0.40408,
    "c": 0.17026,
    "h": 291.1
  },
  "luminance": 0.05714
}

Semantic roles & 50–950 ramp

primary
#4E2B9B
secondary
#A1BC65
accent
#E048B0
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4E2B9B

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

Preview Lab → · Contrast checker → · Palette generator →

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