#4E2BA1#4E2BA1

#4E2BA1 is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.9% C 0.177 H 289.8°. Best body text is #FFFFFF at 9.61:1 contrast (WCAG AA passes).

Color values

HEX#4E2BA1
RGBrgb(78, 43, 161)
HSLhsl(258, 58%, 40%)
HSVhsv(258, 73%, 63%)
CMYKcmyk(51.6%, 73.3%, 0%, 36.9%)
CIE-LABlab(29.21, 44.56, -58.14)
CIE-LCHlch(29.21, 73.25, 307.47°)
OKLaboklab(40.95% 0.0601 -0.167)
OKLCHoklch(40.95% 0.177 289.8)
XYZxyz(10.4369, 5.9202, 34.3041)
Luminance0.0592 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2BA1 #7EA12B
analogous
#2B43A1 #4E2BA1 #892BA1
triadic
#4E2BA1 #A14E2B #2BA14E
tetradic
#4E2BA1 #A12B43 #7EA12B #2BA189
square
#4E2BA1 #A12B43 #7EA12B #2BA189
split-complementary
#4E2BA1 #A1892B #43A12B
monochromatic
#1F1140 #371E71 #4E2BA1 #683ECB #8E6ED8

Accessibility & contrast

On white

9.61
#4E2BA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#4E2BA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2BA1
9.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2BA1#FFFFFF#000000##FFFFFF
##4E2BA11.009.612.189.61
#FFFFFF9.611.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A4
Deuteranopia (green-blind)
#00429F
Tritanopia (blue-blind)
#304A63
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4e2ba1;
/* rgb */ color: rgb(78, 43, 161);
/* oklch */ color: oklch(40.9% 0.177 289.8);
Tailwind
colors: {
  custom: {
    50: '#8868be',
    500: '#4e2ba1',
    950: '#000000',
  },
}
SCSS
$custom: #4e2ba1;
$custom-light: #8868be;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2ba1",
  "rgb": {
    "r": 78,
    "g": 43,
    "b": 161
  },
  "hsl": {
    "h": 257.797,
    "s": 57.843,
    "l": 40
  },
  "oklch": {
    "l": 0.4095,
    "c": 0.17744,
    "h": 289.8
  },
  "luminance": 0.05921
}

Semantic roles & 50–950 ramp

primary
#4E2BA1
secondary
#A6BF69
accent
#E147B3
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4E2BA1

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

Preview Lab → · Contrast checker → · Palette generator →

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