#4E2BA7#4E2BA7

#4E2BA7 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.5% C 0.185 H 288.5°. Best body text is #FFFFFF at 9.43:1 contrast (WCAG AA passes).

Color values

HEX#4E2BA7
RGBrgb(78, 43, 167)
HSLhsl(257, 59%, 41%)
HSVhsv(257, 74%, 65%)
CMYKcmyk(53.3%, 74.3%, 0%, 34.5%)
CIE-LABlab(29.76, 46.28, -60.88)
CIE-LCHlch(29.76, 76.47, 307.25°)
OKLaboklab(41.5% 0.0587 -0.175)
OKLCHoklch(41.5% 0.185 288.5)
XYZxyz(10.9788, 6.1369, 37.1578)
Luminance0.0614 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E2BA7 #84A72B
analogous
#2B46A7 #4E2BA7 #8C2BA7
triadic
#4E2BA7 #A74E2B #2BA74E
tetradic
#4E2BA7 #A72B46 #84A72B #2BA78C
square
#4E2BA7 #A72B46 #84A72B #2BA78C
split-complementary
#4E2BA7 #A78C2B #46A72B
monochromatic
#211246 #371E76 #4E2BA7 #6941CE #8F72DB

Accessibility & contrast

On white

9.43
#4E2BA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#4E2BA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E2BA7
9.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E2BA7#FFFFFF#000000##FFFFFF
##4E2BA71.009.432.239.43
#FFFFFF9.431.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049AB
Deuteranopia (green-blind)
#0043A5
Tritanopia (blue-blind)
#2C4D67
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4e2ba7;
/* rgb */ color: rgb(78, 43, 167);
/* oklch */ color: oklch(41.5% 0.185 288.5);
Tailwind
colors: {
  custom: {
    50: '#8968c2',
    500: '#4e2ba7',
    950: '#000000',
  },
}
SCSS
$custom: #4e2ba7;
$custom-light: #8968c2;
$custom-dark: #000000;
JSON
{
  "hex": "#4e2ba7",
  "rgb": {
    "r": 78,
    "g": 43,
    "b": 167
  },
  "hsl": {
    "h": 256.935,
    "s": 59.048,
    "l": 41.176
  },
  "oklch": {
    "l": 0.41502,
    "c": 0.18456,
    "h": 288.5
  },
  "luminance": 0.06137
}

Semantic roles & 50–950 ramp

primary
#4E2BA7
secondary
#AAC26C
accent
#E246B6
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0D0613
muted
#7D7A82

Preview Lab

Preview with #4E2BA7

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

Preview Lab → · Contrast checker → · Palette generator →

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